-
- All Implemented Interfaces:
-
com.batch.android.msgpack.value.Value,java.lang.Iterable
public interface ArrayValue implements Value, Iterable<Value>
Representation of MessagePack's Array type.
MessagePack's Array type can represent sequence of values.
-
-
Method Summary
Modifier and Type Method Description abstract intsize()Returns number of elements in this array. abstract Valueget(int index)Returns the element at the specified position in this array. abstract ValuegetOrNilValue(int index)Returns the element at the specified position in this array.This method returns an ImmutableNilValue if the index is out of range. abstract Iterator<Value>iterator()Returns an iterator over elements. abstract List<Value>list()Returns the value as {@code List}.-
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
size
abstract int size()
Returns number of elements in this array.
-
getOrNilValue
abstract Value getOrNilValue(int index)
Returns the element at the specified position in this array.This method returns an ImmutableNilValue if the index is out of range.
-
-
-
-