public interface ImmutableArrayValue extends ArrayValue, ImmutableValue
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Value> |
iterator()
Returns an iterator over elements.
|
java.util.List<Value> |
list()
Returns the value as
List . |
get, getOrNilValue, size
asArrayValue, asBinaryValue, asBooleanValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asRawValue, asStringValue
asExtensionValue, asNumberValue, equals, getValueType, immutableValue, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, toJson, writeTo
java.util.Iterator<Value> iterator()
remove()
method since the value is immutable.iterator
in interface ArrayValue
iterator
in interface java.lang.Iterable<Value>
java.util.List<Value> list()
List
.
Returned List is immutable. It does not support put()
, clear()
, or other methods that modify the value.list
in interface ArrayValue