public class JsonArray extends Object
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
add(boolean value) |
JsonArray |
add(double value) |
JsonArray |
add(int value) |
JsonArray |
add(JsonArray value) |
JsonArray |
add(JsonObject value) |
JsonArray |
add(long value) |
JsonArray |
add(String value) |
void |
clear() |
Object |
get(int index) |
boolean |
getBoolean(int index) |
boolean |
getBoolean(int index,
boolean defaultValue) |
double |
getDouble(int index) |
double |
getDouble(int index,
double defaultValue) |
int |
getInt(int index) |
int |
getInt(int index,
int defaultValue) |
JsonArray |
getJSONArray(int index) |
JsonArray |
getJSONArray(int index,
JsonArray defaultValue) |
JsonObject |
getJSONObject(int index) |
JsonObject |
getJSONObject(int index,
JsonObject defaultValue) |
long |
getLong(int index) |
long |
getLong(int index,
long defaultValue) |
String |
getString(int index) |
String |
getString(int index,
String defaultValue) |
Iterator<Object> |
iterator() |
JsonArray |
remove(int index) |
int |
size() |
String |
toString() |
String |
toString(int indentFactor) |
public JsonArray add(boolean value)
public JsonArray add(double value)
public JsonArray add(int value)
public JsonArray add(JsonObject value)
public JsonArray add(long value)
public void clear()
public Object get(int index)
public boolean getBoolean(int index)
throws ConversionException
ConversionExceptionpublic boolean getBoolean(int index,
boolean defaultValue)
public double getDouble(int index)
throws ConversionException
ConversionExceptionpublic double getDouble(int index,
double defaultValue)
public int getInt(int index)
throws ConversionException
ConversionExceptionpublic int getInt(int index,
int defaultValue)
public JsonArray getJSONArray(int index) throws ConversionException
ConversionExceptionpublic JsonObject getJSONObject(int index) throws ConversionException
ConversionExceptionpublic JsonObject getJSONObject(int index, JsonObject defaultValue)
public long getLong(int index)
throws ConversionException
ConversionExceptionpublic long getLong(int index,
long defaultValue)
public String getString(int index) throws ConversionException
ConversionExceptionpublic JsonArray remove(int index)
public int size()
public String toString(int indentFactor)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.