Package 

Interface ImmutableArrayValue

  • All Implemented Interfaces:
    com.batch.android.msgpack.value.ArrayValue , com.batch.android.msgpack.value.ImmutableValue , com.batch.android.msgpack.value.Value , java.lang.Iterable

    
    public interface ImmutableArrayValue
     implements ArrayValue, ImmutableValue
                        

    Immutable representation of MessagePack's Array type.

    MessagePack's Array type can represent sequence of values.

    • Method Summary

      Modifier and Type Method Description
      abstract Iterator<Value> iterator() Returns an iterator over elements.
      abstract List<Value> list() Returns the value as {@code List}.Returned List is immutable.
      • Methods inherited from class com.batch.android.msgpack.value.ArrayValue

        get, getOrNilValue, size
      • 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.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class com.batch.android.msgpack.value.ImmutableValue

        asArrayValue, asBinaryValue, asBooleanValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asRawValue, asStringValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • iterator

         abstract Iterator<Value> iterator()

        Returns an iterator over elements.Returned Iterator does not support {@code remove()} method since the value is immutable.

      • list

         abstract List<Value> list()

        Returns the value as {@code List}.Returned List is immutable. It does not support {@code put()}, {@code clear()}, or other methods that modify the value.