public class JSONArrayValue extends JSONValue
A JSON array is a composite object that stores other JSON values.
| Modifier and Type | Method and Description |
|---|---|
static JSONArrayValue |
fromList(java.util.List<JSONValue> jsonValues)
Create a new JSONArrayValue for given List.
|
JSONValue |
get(int index)
Returns the element at the specified position in this JSON array.
|
boolean |
isArray()
Get a boolean indicating whether this instance represents an JSON array value or not.
|
java.util.Iterator<JSONValue> |
iterator()
Returns an iterator over the elements in this JSON array in proper sequence.
|
int |
size()
Get the size of this JSON array.
|
public static JSONArrayValue fromList(java.util.List<JSONValue> jsonValues)
jsonValues - The list of JSON values.JSONArrayValue or null if argument is null.public boolean isArray()
JSONValuepublic int size()
public JSONValue get(int index)
index - Index of the element to returnjava.lang.IndexOutOfBoundsException - If given index is out of bounds.public java.util.Iterator<JSONValue> iterator()