org.msgpack.value
Interface ArrayValue
- All Superinterfaces:
- ArrayCursor, java.lang.Iterable<ValueRef>, Value, ValueRef
- All Known Implementing Classes:
- ArrayValueImpl
public interface ArrayValue
- extends Value, ArrayCursor
Value interface for array type data.
Implementation note: We do not implement List interface here, because
we cannot reuse AbstractList and AbstractValue implementations simultaneously since
Java does not support mixin of classes. Instead, it provides ArrayCursor.iterator()
or
toValueArray()
methods to traverse the array contents.
Methods inherited from interface org.msgpack.value.ValueRef |
accept, asBinary, asBoolean, asExtended, asFloat, asInteger, asNil, asNumber, asRaw, asString, getArrayCursor, getMapCursor, getValueType, isArray, isBinary, isBoolean, isExtended, isFloat, isInteger, isMap, isNil, isNumber, isRaw, isRef, isString, writeTo |
toValueArray
Value[] toValueArray()
get
Value get(int index)
apply
Value apply(int index)
toValue
ArrayValue toValue()
- Description copied from interface:
ValueRef
- Create an immutable value from this reference
- Specified by:
toValue
in interface ArrayCursor
- Specified by:
toValue
in interface ValueRef
- Returns: