private class Variable.BooleanValueAccessor extends Variable.AbstractValueAccessor implements BooleanValue
| Modifier | Constructor and Description |
|---|---|
private |
BooleanValueAccessor() |
| Modifier and Type | Method and Description |
|---|---|
BooleanValue |
asBooleanValue()
Returns the value as
BooleanValue. |
boolean |
getBoolean()
Returns the value as a
boolean. |
ValueType |
getValueType()
Returns type of this value.
|
ImmutableBooleanValue |
immutableValue()
Returns immutable copy of this value.
|
void |
writeTo(MessagePacker pk)
Serializes the value using the specified
MessagePacker |
asArrayValue, asBinaryValue, asExtensionValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, 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, waitasArrayValue, asBinaryValue, 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 BooleanValue asBooleanValue()
ValueBooleanValue. Otherwise throws MessageTypeCastException.
Note that you can't use instanceof or cast ((BooleanValue) thisValue) to check type of a value because type of a mutable value is variable.asBooleanValue in interface ValueasBooleanValue in class Variable.AbstractValueAccessorpublic ImmutableBooleanValue immutableValue()
Valuethis without copying the value if this value is already immutable.immutableValue in interface Valuepublic boolean getBoolean()
BooleanValueboolean.getBoolean in interface BooleanValuepublic void writeTo(MessagePacker pk) throws java.io.IOException
ValueMessagePackerwriteTo in interface Valuejava.io.IOExceptionMessagePacker