private class Variable.BinaryValueAccessor extends Variable.AbstractRawValueAccessor implements BinaryValue
| Modifier | Constructor and Description |
|---|---|
private |
BinaryValueAccessor() |
| Modifier and Type | Method and Description |
|---|---|
BinaryValue |
asBinaryValue()
Returns the value as
BinaryValue. |
ValueType |
getValueType()
Returns type of this value.
|
ImmutableBinaryValue |
immutableValue()
Returns immutable copy of this value.
|
void |
writeTo(MessagePacker pk)
Serializes the value using the specified
MessagePacker |
asByteArray, asByteBuffer, asRawValue, asString, toStringasArrayValue, asBooleanValue, asExtensionValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asStringValue, asTimestampValue, equals, hashCode, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, isTimestampValue, toJsonclone, finalize, getClass, notify, notifyAll, wait, wait, waitasByteArray, asByteBuffer, asString, toStringasArrayValue, asBooleanValue, asExtensionValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asRawValue, asStringValue, asTimestampValue, equals, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, isTimestampValue, toJsonpublic ValueType getValueType()
Valueinstanceof to check type of a value because type of a mutable value is variable.getValueType in interface Valuepublic BinaryValue asBinaryValue()
ValueBinaryValue. Otherwise throws MessageTypeCastException.
Note that you can't use instanceof or cast ((BinaryValue) thisValue) to check type of a value because type of a mutable value is variable.asBinaryValue in interface ValueasBinaryValue in class Variable.AbstractValueAccessorpublic ImmutableBinaryValue immutableValue()
Valuethis without copying the value if this value is already immutable.immutableValue in interface Valuepublic void writeTo(MessagePacker pk) throws java.io.IOException
ValueMessagePackerwriteTo in interface Valuejava.io.IOExceptionMessagePacker