public class JsArray extends java.util.ArrayList<java.lang.Object> implements JsCollection
Constructor and Description |
---|
JsArray() |
JsArray(java.lang.CharSequence inJSONString) |
JsArray(java.util.Collection inCollection) |
JsArray(double[] inArray) |
JsArray(float[] inArray) |
JsArray(int inInitialCapacity) |
JsArray(int[] inArray) |
JsArray(long[] inArray) |
JsArray(java.lang.Object[] inArray) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getString(int inIndex) |
java.lang.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(java.io.OutputStream inStream) |
void |
toJavascript(java.io.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.
|
java.lang.String |
toJSON()
Produces a JSON serialization of the Collection.
|
void |
toJSON(java.io.OutputStream inStream) |
void |
toJSON(java.io.Writer inWriter)
Produces a JSON serialization of the Collection.
|
java.lang.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
public JsArray()
public JsArray(int inInitialCapacity)
public JsArray(java.util.Collection inCollection)
public JsArray(java.lang.Object[] inArray)
public JsArray(int[] inArray)
public JsArray(long[] inArray)
public JsArray(float[] inArray)
public JsArray(double[] inArray)
public JsArray(java.lang.CharSequence inJSONString)
public java.lang.String toString()
toString
in class java.util.AbstractCollection<java.lang.Object>
public java.lang.String toJSON()
JsCollection
toJSON
in interface JsCollection
public void toJSON(java.io.OutputStream inStream)
public void toJSON(java.io.Writer inWriter)
JsCollection
toJSON
in interface JsCollection
inWriter
- where to send the JSON topublic java.lang.String toJavascript()
JsCollection
toJavascript
in interface JsCollection
public void toJavascript(java.io.OutputStream inStream)
public void toJavascript(java.io.Writer inWriter)
JsCollection
toJavascript
in interface JsCollection
inWriter
- where to send the javascript topublic java.lang.String getString(int inIndex)
[email protected]