public class QuantityValue extends Object implements Value<Double>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
serial number
|
private String |
unit
Unit of measure
|
private Double |
value
Measurement value
|
Constructor and Description |
---|
QuantityValue(Double value)
constructor
|
QuantityValue(Double value,
String unit)
constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getUnit()
Get the unit of measure
|
Double |
getValue()
Get the measurement value
|
boolean |
isSetUnit()
Check whether the unit of measure is set
|
boolean |
isSetValue()
Check whether the value is set
|
void |
setUnit(String unit)
Set the unit of measure
|
void |
setValue(Double value)
Set the measurment value
|
String |
toString() |
private static final long serialVersionUID
private Double value
private String unit
public QuantityValue(Double value)
value
- Measurement valuepublic void setValue(Double value)
Value
public Double getValue()
Value
public void setUnit(String unit)
Value
public boolean isSetValue()
Value
isSetValue
in interface Value<Double>
true
, if value is setCopyright © 2012-2015 52north.org. All Rights Reserved.