public class JsArray extends ArrayList<Object> implements JsCollection
modCount
Constructor and Description |
---|
JsArray() |
JsArray(CharSequence inJSONString) |
JsArray(Collection inCollection) |
JsArray(double[] inArray) |
JsArray(float[] inArray) |
JsArray(int inInitialCapacity) |
JsArray(int[] inArray) |
JsArray(long[] inArray) |
JsArray(Object[] inArray) |
Modifier and Type | Method and Description |
---|---|
String |
getString(int inIndex) |
String |
toJavascript()
Produces a javascript serialization that will generally be the same as produced
by toJSON() except when values have been added via the putUnquoted() method.
|
void |
toJavascript(OutputStream inStream) |
void |
toJavascript(Writer inWriter)
Produces a javascript serialization that will generally be the same as produced
by toJSON() except when values have been added via the putUnquoted() method.
|
String |
toJSON()
Produces a JSON serialization of the Collection.
|
void |
toJSON(OutputStream inStream) |
void |
toJSON(Writer inWriter)
Produces a JSON serialization of the Collection.
|
String |
toString() |
add, 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
equals, hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public JsArray()
public JsArray(int inInitialCapacity)
public JsArray(Collection inCollection)
public JsArray(int[] inArray)
public JsArray(long[] inArray)
public JsArray(float[] inArray)
public JsArray(double[] inArray)
public JsArray(CharSequence inJSONString)
public String toString()
toString
in class AbstractCollection<Object>
public String toJSON()
JsCollection
toJSON
in interface JsCollection
public void toJSON(OutputStream inStream)
public void toJSON(Writer inWriter)
JsCollection
toJSON
in interface JsCollection
inWriter
- where to send the JSON topublic String toJavascript()
JsCollection
toJavascript
in interface JsCollection
public void toJavascript(OutputStream inStream)
public void toJavascript(Writer inWriter)
JsCollection
toJavascript
in interface JsCollection
inWriter
- where to send the javascript to