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, trimToSizeequals, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic 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()
JsCollectiontoJSON in interface JsCollectionpublic void toJSON(OutputStream inStream)
public void toJSON(Writer inWriter)
JsCollectiontoJSON in interface JsCollectioninWriter - where to send the JSON topublic String toJavascript()
JsCollectiontoJavascript in interface JsCollectionpublic void toJavascript(OutputStream inStream)
public void toJavascript(Writer inWriter)
JsCollectiontoJavascript in interface JsCollectioninWriter - where to send the javascript to
jataylor@hairyfatguy.com