private class Variable.FloatValueAccessor extends Variable.AbstractNumberValueAccessor implements FloatValue
| Modifier | Constructor and Description |
|---|---|
private |
FloatValueAccessor() |
| Modifier and Type | Method and Description |
|---|---|
FloatValue |
asFloatValue()
Returns the value as
FloatValue. |
ValueType |
getValueType()
Returns type of this value.
|
ImmutableFloatValue |
immutableValue()
Returns immutable copy of this value.
|
void |
writeTo(MessagePacker pk)
Serializes the value using the specified
MessagePacker |
asNumberValue, toBigInteger, toByte, toDouble, toFloat, toInt, toLong, toShortasArrayValue, asBinaryValue, asBooleanValue, asExtensionValue, asIntegerValue, asMapValue, asNilValue, asRawValue, asStringValue, asTimestampValue, equals, hashCode, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, isTimestampValue, toJson, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waittoBigInteger, toByte, toDouble, toFloat, toInt, toLong, toShortasArrayValue, asBinaryValue, asBooleanValue, asExtensionValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asRawValue, asStringValue, asTimestampValue, equals, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, isTimestampValue, toJsonpublic FloatValue asFloatValue()
ValueFloatValue. Otherwise throws MessageTypeCastException.
Note that you can't use instanceof or cast ((FloatValue) thisValue) to check type of a value because type of a mutable value is variable.asFloatValue in interface ValueasFloatValue in class Variable.AbstractValueAccessorpublic ImmutableFloatValue immutableValue()
Valuethis without copying the value if this value is already immutable.immutableValue in interface Valuepublic ValueType getValueType()
Valueinstanceof to check type of a value because type of a mutable value is variable.getValueType in interface Valuepublic void writeTo(MessagePacker pk) throws java.io.IOException
ValueMessagePackerwriteTo in interface Valuejava.io.IOExceptionMessagePacker