Interface ImmutableValue

    • Method Detail

      • asNilValue

        ImmutableNilValue asNilValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asNilValue in interface Value
      • asBooleanValue

        ImmutableBooleanValue asBooleanValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asBooleanValue in interface Value
      • asIntegerValue

        ImmutableIntegerValue asIntegerValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asIntegerValue in interface Value
      • asFloatValue

        ImmutableFloatValue asFloatValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asFloatValue in interface Value
      • asArrayValue

        ImmutableArrayValue asArrayValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asArrayValue in interface Value
      • asMapValue

        ImmutableMapValue asMapValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asMapValue in interface Value
      • asRawValue

        ImmutableRawValue asRawValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asRawValue in interface Value
      • asBinaryValue

        ImmutableBinaryValue asBinaryValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asBinaryValue in interface Value
      • asStringValue

        ImmutableStringValue asStringValue()
        Description copied from interface: Value
        Returns the value as 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.
        Specified by:
        asStringValue in interface Value