public final class JSONArray extends JSONValue
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(JSONTarget<?> target)
Appends this value to the specified target.
|
JSONValue[] |
getArray()
Returns the value.
|
<E> E[] |
getArray(java.lang.Class<E> elementType,
java.util.function.Function<JSONValue,E> converter)
Returns the value.
|
JSONValue |
getElement(int index)
Returns the value at specified 0-based index, or
null. |
int |
length()
Returns the array length
|
public void addTo(JSONTarget<?> target)
JSONValuepublic int length()
public JSONValue[] getArray()
public <E> E[] getArray(java.lang.Class<E> elementType,
java.util.function.Function<JSONValue,E> converter)
E - type of elementselementType - the type of array elementsconverter - a converter to the specified typepublic JSONValue getElement(int index)
null.index - 0-based indexnull.