public static final class JSON.Array extends Object implements Iterable<JSON.Value>
Modifier and Type | Method and Description |
---|---|
JSON.Value |
get(int index)
Gets the
JSON.Value at the given index. |
Iterator<JSON.Value> |
iterator()
Creates a new
Iterator that iterates over the array JSON.Value . |
int |
size()
Returns the array size.
|
Stream<JSON.Value> |
stream()
Returns a stream of values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int size()
public JSON.Value get(int index)
JSON.Value
at the given index.index
- Array index to read fromJSON.Value
at this indexpublic Stream<JSON.Value> stream()
Stream
of all JSON.Value
of this arraypublic Iterator<JSON.Value> iterator()
Iterator
that iterates over the array JSON.Value
.iterator
in interface Iterable<JSON.Value>
Copyright © 2015–2019. All rights reserved.