public interface ImmutableValue extends Value
Value
interface.Modifier and Type | Method and Description |
---|---|
ImmutableArrayValue |
asArrayValue()
Returns the value as
ArrayValue . |
ImmutableBinaryValue |
asBinaryValue()
Returns the value as
BinaryValue . |
ImmutableBooleanValue |
asBooleanValue()
Returns the value as
BooleanValue . |
ImmutableFloatValue |
asFloatValue()
Returns the value as
FloatValue . |
ImmutableIntegerValue |
asIntegerValue()
Returns the value as
IntegerValue . |
ImmutableMapValue |
asMapValue()
Returns the value as
MapValue . |
ImmutableNilValue |
asNilValue()
Returns the value as
NilValue . |
ImmutableRawValue |
asRawValue()
Returns the value as
RawValue . |
ImmutableStringValue |
asStringValue()
Returns the value as
StringValue . |
asExtensionValue, asNumberValue, equals, getValueType, immutableValue, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, toJson, writeTo
ImmutableNilValue asNilValue()
Value
NilValue
. Otherwise throws MessageTypeCastException
.
Note that you can't use instanceof
or cast ((NilValue) thisValue)
to check type of a value because type of a mutable value is variable.asNilValue
in interface Value
ImmutableBooleanValue asBooleanValue()
Value
BooleanValue
. 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 Value
ImmutableIntegerValue asIntegerValue()
Value
IntegerValue
. Otherwise throws MessageTypeCastException
.
Note that you can't use instanceof
or cast ((IntegerValue) thisValue)
to check type of a value because type of a mutable value is variable.asIntegerValue
in interface Value
ImmutableFloatValue asFloatValue()
Value
FloatValue
. 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 Value
ImmutableArrayValue asArrayValue()
Value
ArrayValue
. Otherwise throws MessageTypeCastException
.
Note that you can't use instanceof
or cast ((ArrayValue) thisValue)
to check type of a value because type of a mutable value is variable.asArrayValue
in interface Value
ImmutableMapValue asMapValue()
Value
MapValue
. Otherwise throws MessageTypeCastException
.
Note that you can't use instanceof
or cast ((MapValue) thisValue)
to check type of a value because type of a mutable value is variable.asMapValue
in interface Value
ImmutableRawValue asRawValue()
Value
RawValue
. Otherwise throws MessageTypeCastException
.
Note that you can't use instanceof
or cast ((RawValue) thisValue)
to check type of a value because type of a mutable value is variable.asRawValue
in interface Value
ImmutableBinaryValue asBinaryValue()
Value
BinaryValue
. 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 Value
ImmutableStringValue asStringValue()
Value
StringValue
. Otherwise throws MessageTypeCastException
.
Note that you can't use instanceof
or cast ((StringValue) thisValue)
to check type of a value because type of a mutable value is variable.asStringValue
in interface Value