org.jclouds.deltacloud.domain.internal
Class BaseHardwareProperty
java.lang.Object
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:
getKind
in interface HardwareProperty
- Returns:
- describes the values to chose from.
getName
public String getName()
-
- Specified by:
getName
in interface HardwareProperty
- Returns:
- the type of the property: e.g. memory or storage
getUnit
public String getUnit()
-
- Specified by:
getUnit
in interface HardwareProperty
- Returns:
- the units in which the value is specified: MB, GB, count or label
getValue
public Object getValue()
-
- Specified by:
getValue
in 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:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 jclouds. All Rights Reserved.