public class JSONArray extends java.util.ArrayList<java.lang.Object> implements JSONCompoundType
Constructor and Description |
---|
JSONArray() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object o) |
double |
getDouble(int index) |
long |
getLong(int index) |
java.lang.String |
toString()
Convert to string using the default string formatter.
|
java.lang.String |
toString(JSONStringFormatter s) |
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public boolean add(java.lang.Object o)
add
in interface java.util.Collection<java.lang.Object>
add
in interface java.util.List<java.lang.Object>
add
in class java.util.ArrayList<java.lang.Object>
public java.lang.String toString()
JSONCompoundType
toString
in interface JSONCompoundType
toString
in class java.util.AbstractCollection<java.lang.Object>
JSONStringFormatter
public java.lang.String toString(JSONStringFormatter s)
toString
in interface JSONCompoundType
public double getDouble(int index)
public long getLong(int index)