| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_UNIT |
static String |
KEY_VALUE |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
Temperature() |
Temperature(Hashtable<String,Object> hash) |
Temperature(TemperatureUnit unit,
Float value)
Create the temperature object
|
| Modifier and Type | Method and Description |
|---|---|
TemperatureUnit |
getUnit()
Gets the unit portion of the Temperature class
|
Float |
getValue()
Gets the value portion of the Temperature class
|
Temperature |
setUnit(TemperatureUnit unit)
Sets the unit portion of the Temperature class
|
Temperature |
setValue(Float value)
Sets the value portion of the Temperature class
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_UNIT
public static final String KEY_VALUE
public Temperature()
public Temperature(@NonNull
TemperatureUnit unit,
@NonNull
Float value)
unit - Temperature Unit.value - Temperature Value in TemperatureUnit specified unitpublic Temperature setUnit(@NonNull TemperatureUnit unit)
unit - Temperature Unit.public TemperatureUnit getUnit()
public Float getValue()
public Temperature setValue(@NonNull Float value)
value - Temperature Value in TemperatureUnit specified unit. Range depends on OEM and is not checked by SDL.