Package org.h2.util.json
Class JSONArray
java.lang.Object
org.h2.util.json.JSONValue
org.h2.util.json.JSONArray
JSON array.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(JSONTarget<?> target) Appends this value to the specified target.getArray()Returns the value.<E> E[]Returns the value.getElement(int index) Returns the value at specified 0-based index, ornull.intlength()Returns the array length
-
Method Details
-
addTo
Description copied from class:JSONValueAppends this value to the specified target. -
length
public int length()Returns the array length- Returns:
- the array length
-
getArray
Returns the value.- Returns:
- the value
-
getArray
Returns the value.- Type Parameters:
E- type of elements- Parameters:
elementType- the type of array elementsconverter- a converter to the specified type- Returns:
- the value
-
getElement
Returns the value at specified 0-based index, ornull.- Parameters:
index- 0-based index- Returns:
- the value at specified 0-based index, or
null.
-