|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.dubbo.common.json.JSONArray
public class JSONArray
JSONArray.
| Constructor Summary | |
|---|---|
JSONArray()
|
|
| Method Summary | |
|---|---|
void |
add(Object ele)
add item. |
void |
addAll(Collection<?> c)
add items. |
void |
addAll(Object[] eles)
add items. |
Object |
get(int index)
get. |
JSONArray |
getArray(int index)
get JSONArray value. |
boolean |
getBoolean(int index,
boolean def)
get boolean value. |
double |
getDouble(int index,
double def)
get double value. |
float |
getFloat(int index,
float def)
get float value. |
int |
getInt(int index,
int def)
get int value. |
long |
getLong(int index,
long def)
get long value. |
JSONObject |
getObject(int index)
get JSONObject value. |
String |
getString(int index)
get string value. |
int |
length()
get array length. |
void |
writeJSON(JSONConverter jc,
JSONWriter jb,
boolean writeClass)
write json. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONArray()
| Method Detail |
|---|
public Object get(int index)
index - index.
public boolean getBoolean(int index,
boolean def)
index - index.def - default value.
public int getInt(int index,
int def)
index - index.def - default value.
public long getLong(int index,
long def)
index - index.def - default value.
public float getFloat(int index,
float def)
index - index.def - default value.
public double getDouble(int index,
double def)
index - index.def - default value.
public String getString(int index)
index - index.
public JSONArray getArray(int index)
index - index.
public JSONObject getObject(int index)
index - index.
public int length()
public void add(Object ele)
public void addAll(Object[] eles)
public void addAll(Collection<?> c)
public void writeJSON(JSONConverter jc,
JSONWriter jb,
boolean writeClass)
throws IOException
jc - json converterjb - json builder.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||