Class BooleanValue
- java.lang.Object
-
- com.smartgridready.communicator.common.api.values.Value
-
- com.smartgridready.communicator.common.api.values.BooleanValue
-
public class BooleanValue extends Value
-
-
Field Summary
-
Fields inherited from class com.smartgridready.communicator.common.api.values.Value
UNSIGNED_LONG_MASK
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
absValue()
BooleanValue[]
asArray()
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.Boolean>
getBitmap()
boolean
getBoolean()
java.time.Instant
getDateTime()
EnumRecord
getEnum()
float
getFloat32()
double
getFloat64()
short
getInt16()
int
getInt16U()
int
getInt32()
long
getInt32U()
long
getInt64()
java.math.BigInteger
getInt64U()
byte
getInt8()
short
getInt8U()
com.fasterxml.jackson.databind.JsonNode
getJson()
java.lang.String
getString()
int
hashCode()
static BooleanValue
of(boolean value)
void
roundToInt()
-
Methods inherited from class com.smartgridready.communicator.common.api.values.Value
enumToOrdinalValue, fromDiscreteInput, fromModbusRegister, fromString, getJson, toModbusDiscreteVal, toModbusRegister
-
-
-
-
Method Detail
-
getFloat32
public float getFloat32()
- Specified by:
getFloat32
in classValue
-
getFloat64
public double getFloat64()
- Specified by:
getFloat64
in classValue
-
getEnum
public EnumRecord getEnum()
-
getBitmap
public java.util.Map<java.lang.String,java.lang.Boolean> getBitmap()
-
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean
in classValue
-
getDateTime
public java.time.Instant getDateTime()
- Specified by:
getDateTime
in classValue
-
getJson
public com.fasterxml.jackson.databind.JsonNode getJson()
-
roundToInt
public void roundToInt()
- Specified by:
roundToInt
in classValue
-
of
public static BooleanValue of(boolean value)
-
asArray
public BooleanValue[] asArray()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-