-
- All Implemented Interfaces:
-
com.batch.android.msgpack.value.Value
public interface ImmutableValue implements Value
Immutable declaration of Value interface.
-
-
Method Summary
Modifier and Type Method Description abstract ImmutableNilValueasNilValue()Returns the value as {@code NilValue}.abstract ImmutableBooleanValueasBooleanValue()Returns the value as {@code BooleanValue}.abstract ImmutableIntegerValueasIntegerValue()Returns the value as {@code IntegerValue}.abstract ImmutableFloatValueasFloatValue()Returns the value as {@code FloatValue}.abstract ImmutableArrayValueasArrayValue()Returns the value as {@code ArrayValue}.abstract ImmutableMapValueasMapValue()Returns the value as {@code MapValue}.abstract ImmutableRawValueasRawValue()Returns the value as {@code RawValue}.abstract ImmutableBinaryValueasBinaryValue()Returns the value as {@code BinaryValue}.abstract ImmutableStringValueasStringValue()Returns the value as {@code StringValue}.-
Methods inherited from class com.batch.android.msgpack.value.Value
asArrayValue, asBinaryValue, asBooleanValue, asExtensionValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asRawValue, asStringValue, equals, getValueType, immutableValue, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, toJson, writeTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
asNilValue
abstract ImmutableNilValue asNilValue()
Returns the value as
{@code NilValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((NilValue) thisValue)to check type of a value because type of a mutable value is variable.
-
asBooleanValue
abstract ImmutableBooleanValue asBooleanValue()
Returns the value as
{@code BooleanValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((BooleanValue) thisValue)to check type of a value because type of a mutable value is variable.
-
asIntegerValue
abstract ImmutableIntegerValue asIntegerValue()
Returns the value as
{@code IntegerValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((IntegerValue) thisValue)to check type of a value because type of a mutable value is variable.
-
asFloatValue
abstract ImmutableFloatValue asFloatValue()
Returns the value as
{@code FloatValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((FloatValue) thisValue)to check type of a value because type of a mutable value is variable.
-
asArrayValue
abstract ImmutableArrayValue asArrayValue()
Returns the value as
{@code ArrayValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((ArrayValue) thisValue)to check type of a value because type of a mutable value is variable.
-
asMapValue
abstract ImmutableMapValue asMapValue()
Returns the value as
{@code MapValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((MapValue) thisValue)to check type of a value because type of a mutable value is variable.
-
asRawValue
abstract ImmutableRawValue asRawValue()
Returns the value as
{@code RawValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((RawValue) thisValue)to check type of a value because type of a mutable value is variable.
-
asBinaryValue
abstract ImmutableBinaryValue asBinaryValue()
Returns the value as
{@code BinaryValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((BinaryValue) thisValue)to check type of a value because type of a mutable value is variable.
-
asStringValue
abstract ImmutableStringValue asStringValue()
Returns the value as
{@code StringValue}. Otherwise throws{@code MessageTypeCastException}.Note that you can't use
instanceofor cast((StringValue) thisValue)to check type of a value because type of a mutable value is variable.
-
-
-
-