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()booleanequals(Object o)StringgetQuantity()StateTypegetState()ValueTypegetType()StringgetUnit()BigDecimalgetValue()inthashCode()voidsetQuantity(String quantity)voidsetState(StateType state)voidsetType(ValueType type)voidsetUnit(String unit)voidsetValue(BigDecimal value)StringtoString()
-
-
-
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)
-
-