Package org.msgpack.value
Interface ImmutableArrayValue
-
- All Superinterfaces:
ArrayValue,ImmutableValue,java.lang.Iterable<Value>,Value
- All Known Implementing Classes:
ImmutableArrayValueImpl
public interface ImmutableArrayValue extends ArrayValue, ImmutableValue
Immutable representation of MessagePack's Array type. MessagePack's Array type can represent sequence of values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Iterator<Value>iterator()Returns an iterator over elements.java.util.List<Value>list()Returns the value asList.-
Methods inherited from interface org.msgpack.value.ArrayValue
get, getOrNilValue, size
-
Methods inherited from interface org.msgpack.value.ImmutableValue
asArrayValue, asBinaryValue, asBooleanValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asRawValue, asStringValue
-
Methods inherited from interface org.msgpack.value.Value
asExtensionValue, asNumberValue, equals, getValueType, immutableValue, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, toJson, writeTo
-
-
-
-
Method Detail
-
iterator
java.util.Iterator<Value> iterator()
Returns an iterator over elements. Returned Iterator does not supportremove()method since the value is immutable.- Specified by:
iteratorin interfaceArrayValue- Specified by:
iteratorin interfacejava.lang.Iterable<Value>
-
list
java.util.List<Value> list()
Returns the value asList. Returned List is immutable. It does not supportput(),clear(), or other methods that modify the value.- Specified by:
listin interfaceArrayValue
-
-