org.openmuc.framework.data
public interface Value
Modifier and Type | Method and 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.
|
double asDouble()
TypeConversionException
- if the stored value cannot be converted to a doublefloat asFloat()
TypeConversionException
- if the stored value cannot be converted to a floatlong asLong()
TypeConversionException
- if the stored value cannot be converted to a longint asInt()
TypeConversionException
- if the stored value cannot be converted to an integershort asShort()
TypeConversionException
- if the stored value cannot be converted to a shortbyte asByte()
TypeConversionException
- if the stored value cannot be converted to a byteboolean asBoolean()
TypeConversionException
- if the stored value cannot be converted to a booleanbyte[] asByteArray()
java.lang.String asString()