Holder object for the value of a singleLocalField
in aLocalDataPoint
.
Values are not constructed directly; a value for each field of theLocalDataType
is created for each data point.
A field value has a particular format, and should be read using the format-specific
methods. For instance, a float value should be read viaasFloat()
.
Formats are defined as constants inLocalField
Public Method Summary
float |
asFloat()
Returns the value of this object as a float.
|
int |
asInt()
Returns the value of this object as an int.
|
boolean | |
int |
getFormat()
Returns the format of this value, which matches the appropriate field in the
LocalDataType
definition.
|
int |
hashCode()
|
String |
toString()
|
Inherited Method Summary
Public Methods
public floatasFloat()
Returns the value of this object as a float.
Throws
IllegalStateException | If thisLocalValue
does not correspond to a
LocalField.FORMAT_FLOAT |
---|
public intasInt()
Returns the value of this object as an int.
Throws
IllegalStateException | If thisLocalValue
does not correspond to
LocalField.FORMAT_INT32 |
---|
public booleanequals(Objectother)
public intgetFormat()
Returns the format of this value, which matches the appropriate field in the
LocalDataType
definition.
Returns
- One of the format constants from
LocalField
.