Class ArrayValue<T extends Value>
- java.lang.Object
-
- com.smartgridready.communicator.common.api.values.Value
-
- com.smartgridready.communicator.common.api.values.ArrayValue<T>
-
-
Field Summary
-
Fields inherited from class com.smartgridready.communicator.common.api.values.Value
UNSIGNED_LONG_MASK
-
-
Constructor Summary
Constructors Constructor Description ArrayValue(T[] values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
absValue()
T[]
asArray()
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()
static ArrayValue<Value>
of(Value... values)
void
roundToInt()
-
Methods inherited from class com.smartgridready.communicator.common.api.values.Value
enumToOrdinalValue, fromDiscreteInput, fromModbusRegister, fromString, getJson, toModbusDiscreteVal, toModbusRegister
-
-
-
-
Constructor Detail
-
ArrayValue
public ArrayValue(T[] values)
-
-
Method Detail
-
getFloat32
public float getFloat32()
- Specified by:
getFloat32
in classValue
-
getFloat64
public double getFloat64()
- Specified by:
getFloat64
in classValue
-
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean
in classValue
-
getEnum
public EnumRecord getEnum()
-
getBitmap
public java.util.Map<java.lang.String,java.lang.Boolean> getBitmap()
-
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 ArrayValue<Value> of(Value... values)
-
-