|
EZ JSON by Nathanaël Cottin |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ezjson.JSONArray
public final class JSONArray
A JSON array is able to hold an ordered collection of JSON values,
independently from their actual type. This means that, according to the JSON
specification, an array can mix different JSON types.
Note that this array is iterable: each internal JSON value can be
accessed using a foreach construct
Constructor Summary | |
---|---|
JSONArray()
Creates an empty JSON array |
Method Summary | |
---|---|
void |
add(JSONValue value)
Ensures that this JSON array contains the specified value |
java.util.Collection<JSONValue> |
getValues()
Gets the current collection of values this array holds |
java.util.Iterator<JSONValue> |
iterator()
|
int |
size()
Gets the size of this array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONArray()
Method Detail |
---|
public int size()
public java.util.Collection<JSONValue> getValues()
public void add(JSONValue value)
value
- A possibly null value to add to the current
collectionpublic java.util.Iterator<JSONValue> iterator()
iterator
in interface java.lang.Iterable<JSONValue>
|
EZ JSON by Nathanaël Cottin |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |