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