Package org.openmuc.framework.data
Class IntValue
- java.lang.Object
-
- org.openmuc.framework.data.IntValue
-
- All Implemented Interfaces:
Value
public class IntValue extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
asBoolean()
Returns the value as a boolean.byte
asByte()
Returns the value as a byte.byte[]
asByteArray()
Returns the value as a byte array.double
asDouble()
Returns the value as a double.float
asFloat()
Returns the value as a float.int
asInt()
Returns the value as an integer.long
asLong()
Returns the value as a long.short
asShort()
Returns the value as a short.java.lang.String
asString()
Returns the value as a string.ValueType
getValueType()
Returns theValueType
java.lang.String
toString()
-
-
-
Method Detail
-
asByteArray
public byte[] asByteArray()
Description copied from interface:Value
Returns the value as a byte array.- Specified by:
asByteArray
in interfaceValue
- Returns:
- the value as a byte array
-
getValueType
public ValueType getValueType()
Description copied from interface:Value
Returns theValueType
- Returns:
- ValueType of this value
-
asDouble
public double asDouble()
Description copied from interface:Value
Returns the value as a double.
-
asFloat
public float asFloat()
Description copied from interface:Value
Returns the value as a float.
-
asLong
public long asLong()
Description copied from interface:Value
Returns the value as a long.
-
asInt
public int asInt()
Description copied from interface:Value
Returns the value as an integer.
-
asShort
public short asShort()
Description copied from interface:Value
Returns the value as a short.
-
asByte
public byte asByte()
Description copied from interface:Value
Returns the value as a byte.
-
asBoolean
public boolean asBoolean()
Description copied from interface:Value
Returns the value as a boolean.
-
asString
public java.lang.String asString()
Description copied from interface:Value
Returns the value as a string.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-