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 booleanasBoolean()Returns the value as a boolean.byteasByte()Returns the value as a byte.byte[]asByteArray()Returns the value as a byte array.doubleasDouble()Returns the value as a double.floatasFloat()Returns the value as a float.intasInt()Returns the value as an integer.longasLong()Returns the value as a long.shortasShort()Returns the value as a short.java.lang.StringasString()Returns the value as a string.booleanequals(java.lang.Object o)ValueTypegetValueType()Returns theValueTypeinthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
asByteArray
public byte[] asByteArray()
Description copied from interface:ValueReturns the value as a byte array.- Specified by:
asByteArrayin interfaceValue- Returns:
- the value as a byte array
-
getValueType
public ValueType getValueType()
Description copied from interface:ValueReturns theValueType- Returns:
- ValueType of this value
-
asDouble
public double asDouble()
Description copied from interface:ValueReturns the value as a double.
-
asFloat
public float asFloat()
Description copied from interface:ValueReturns the value as a float.
-
asLong
public long asLong()
Description copied from interface:ValueReturns the value as a long.
-
asInt
public int asInt()
Description copied from interface:ValueReturns the value as an integer.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
asShort
public short asShort()
Description copied from interface:ValueReturns the value as a short.
-
asByte
public byte asByte()
Description copied from interface:ValueReturns the value as a byte.
-
asBoolean
public boolean asBoolean()
Description copied from interface:ValueReturns the value as a boolean.
-
asString
public java.lang.String asString()
Description copied from interface:ValueReturns the value as a string.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-