org.jclouds.deltacloud.domain.internal
Class BaseHardwareProperty
java.lang.Object
   org.jclouds.deltacloud.domain.internal.BaseHardwareProperty
org.jclouds.deltacloud.domain.internal.BaseHardwareProperty
- All Implemented Interfaces: 
- HardwareProperty
- Direct Known Subclasses: 
- FixedHardwareProperty, ParameterizedHardwareProperty
- public class BaseHardwareProperty 
- extends Object- implements HardwareProperty
- Author:
- Adrian Cole
 
 
 
 
 
BaseHardwareProperty
public BaseHardwareProperty(HardwareProperty.Kind kind,
                            String name,
                            String unit,
                            Object value)
getKind
public HardwareProperty.Kind getKind()
- 
 
- 
- Specified by:
- getKindin interface- HardwareProperty
 
- 
- Returns:
- describes the values to chose from.
 
getName
public String getName()
- 
 
- 
- Specified by:
- getNamein interface- HardwareProperty
 
- 
- Returns:
- the type of the property: e.g. memory or storage
 
getUnit
public String getUnit()
- 
 
- 
- Specified by:
- getUnitin interface- HardwareProperty
 
- 
- Returns:
- the units in which the value is specified: MB, GB, count or label
 
getValue
public Object getValue()
- 
 
- 
- Specified by:
- getValuein interface- HardwareProperty
 
- 
- Returns:
- the actual value of the property. It depends on the specified unit: 1024, 2 on x86_64
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Object
 
- 
 
equals
public boolean equals(Object obj)
- 
- Overrides:
- equalsin class- Object
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2009-2011 jclouds. All Rights Reserved.