Package com.cumulocity.model.measurement
Class MeasurementValue
- java.lang.Object
-
- com.cumulocity.model.measurement.MeasurementValue
-
- All Implemented Interfaces:
Serializable
public class MeasurementValue extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MeasurementValue()
MeasurementValue(String unit)
MeasurementValue(BigDecimal value, String unit)
MeasurementValue(BigDecimal value, String unit, ValueType type, String quantity, StateType state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asMap()
boolean
equals(Object o)
String
getQuantity()
StateType
getState()
ValueType
getType()
String
getUnit()
BigDecimal
getValue()
int
hashCode()
void
setQuantity(String quantity)
void
setState(StateType state)
void
setType(ValueType type)
void
setUnit(String unit)
void
setValue(BigDecimal value)
String
toString()
-
-
-
Constructor Detail
-
MeasurementValue
public MeasurementValue()
-
MeasurementValue
public MeasurementValue(String unit)
-
MeasurementValue
public MeasurementValue(BigDecimal value, String unit)
-
MeasurementValue
public MeasurementValue(BigDecimal value, String unit, ValueType type, String quantity, StateType state)
-
-
Method Detail
-
getValue
@JSONProperty(ignoreIfNull=false) public BigDecimal getValue()
-
setValue
public void setValue(BigDecimal value)
-
getUnit
@JSONProperty(ignoreIfNull=false) public String getUnit()
-
setUnit
public void setUnit(String unit)
-
getType
@JSONProperty(ignoreIfNull=true) public ValueType getType()
-
setType
public void setType(ValueType type)
-
getQuantity
@JSONProperty(ignoreIfNull=true) public String getQuantity()
-
setQuantity
public void setQuantity(String quantity)
-
getState
@JSONProperty(ignoreIfNull=true) public StateType getState()
-
setState
public void setState(StateType state)
-
-