public interface ArrayValue extends Value, java.lang.Iterable<Value>
Modifier and Type | Method and Description |
---|---|
Value |
get(int index)
Returns the element at the specified position in this array.
|
Value |
getOrNilValue(int index)
Returns the element at the specified position in this array.
|
java.util.Iterator<Value> |
iterator()
Returns an iterator over elements.
|
java.util.List<Value> |
list()
Returns the value as
List . |
int |
size()
Returns number of elements in this array.
|
asArrayValue, asBinaryValue, asBooleanValue, asExtensionValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asRawValue, asStringValue, asTimestampValue, equals, getValueType, immutableValue, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, isTimestampValue, toJson, writeTo
int size()
Value get(int index)
java.lang.IndexOutOfBoundsException
- If the index is out of range
(index < 0 || index >= size())Value getOrNilValue(int index)
java.util.Iterator<Value> iterator()
iterator
in interface java.lang.Iterable<Value>
java.util.List<Value> list()
List
.