FunctionData.
MultiLevelControl, MultiLevelSensor, Meter, FunctionData
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FIELD_LEVEL
Represents the level field name. |
| public static final String | FIELD_UNIT
Represents the unit field name. |
| private final BigDecimal | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: -1, 0 or 1 depending on the comparison
rules.LevelData to be compared.Overrides org. Implements java. Compares this |
| public boolean | Returns: true if this object is equivalent to the specified one.The object to compare this data. o)Overrides org. Two |
| public BigDecimal | |
| public String | Returns: The value unit ornull if the unit is missing.Returns |
| public int | Returns: The hash code of thisLevelData object.Overrides org. Returns the hash code for this |
| public String | Returns: The string representation of this level data.Overrides java. Returns the string representation of this level data. |
| FIELD_LEVEL | back to summary |
|---|---|
| public static final String FIELD_LEVEL Represents the level field name. The field value is available with
| |
| FIELD_UNIT | back to summary |
|---|---|
| public static final String FIELD_UNIT Represents the unit field name. The field value is available with
| |
| level | back to summary |
|---|---|
| private final BigDecimal level | |
| unit | back to summary |
|---|---|
| private final String unit | |
| LevelData | back to summary |
|---|---|
| public LevelData(Map<String, ?> fields) Constructs new
| |
| LevelData | back to summary |
|---|---|
| public LevelData(long timestamp, Map<String, Object> metadata, BigDecimal level, String unit) Constructs new
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(Object o) Overrides org. Implements java. Compares this
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides org. Two
| |
| getLevel | back to summary |
|---|---|
| public BigDecimal getLevel() Returns
| |
| getUnit | back to summary |
|---|---|
| public String getUnit() Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Returns the hash code for this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string representation of this level data. | |