@Deprecated public class JSONArray extends Object
构造器和说明 |
---|
JSONArray()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
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
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.