public class JSONArrayImpl
extends Object
implements com.liferay.portal.kernel.json.JSONArray
| Constructor and Description |
|---|
JSONArrayImpl() |
JSONArrayImpl(Collection<?> collection) |
JSONArrayImpl(org.json.JSONArray jsonArray) |
JSONArrayImpl(String json) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int index) |
boolean |
getBoolean(int index) |
double |
getDouble(int index) |
int |
getInt(int index) |
org.json.JSONArray |
getJSONArray() |
com.liferay.portal.kernel.json.JSONArray |
getJSONArray(int index) |
com.liferay.portal.kernel.json.JSONObject |
getJSONObject(int index) |
long |
getLong(int index) |
String |
getString(int index) |
boolean |
isNull(int index) |
Iterator<Object> |
iterator() |
String |
join(String separator) |
int |
length() |
com.liferay.portal.kernel.json.JSONArray |
put(boolean value) |
com.liferay.portal.kernel.json.JSONArray |
put(double value) |
com.liferay.portal.kernel.json.JSONArray |
put(int value) |
com.liferay.portal.kernel.json.JSONArray |
put(com.liferay.portal.kernel.json.JSONArray value) |
com.liferay.portal.kernel.json.JSONArray |
put(com.liferay.portal.kernel.json.JSONObject value) |
com.liferay.portal.kernel.json.JSONArray |
put(long value) |
com.liferay.portal.kernel.json.JSONArray |
put(Object value) |
com.liferay.portal.kernel.json.JSONArray |
put(String value) |
void |
readExternal(ObjectInput objectInput) |
String |
toJSONString() |
String |
toString() |
String |
toString(int indentFactor) |
Writer |
write(Writer writer) |
void |
writeExternal(ObjectOutput objectOutput) |
public JSONArrayImpl()
public JSONArrayImpl(Collection<?> collection)
public JSONArrayImpl(org.json.JSONArray jsonArray)
public JSONArrayImpl(String json)
throws com.liferay.portal.kernel.json.JSONException
com.liferay.portal.kernel.json.JSONExceptionpublic Object get(int index)
get in interface com.liferay.portal.kernel.json.JSONArraypublic boolean getBoolean(int index)
getBoolean in interface com.liferay.portal.kernel.json.JSONArraypublic double getDouble(int index)
getDouble in interface com.liferay.portal.kernel.json.JSONArraypublic int getInt(int index)
getInt in interface com.liferay.portal.kernel.json.JSONArraypublic org.json.JSONArray getJSONArray()
public com.liferay.portal.kernel.json.JSONArray getJSONArray(int index)
getJSONArray in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONObject getJSONObject(int index)
getJSONObject in interface com.liferay.portal.kernel.json.JSONArraypublic long getLong(int index)
getLong in interface com.liferay.portal.kernel.json.JSONArraypublic String getString(int index)
getString in interface com.liferay.portal.kernel.json.JSONArraypublic boolean isNull(int index)
isNull in interface com.liferay.portal.kernel.json.JSONArraypublic Iterator<Object> iterator()
iterator in interface Iterablepublic String join(String separator)
throws com.liferay.portal.kernel.json.JSONException
join in interface com.liferay.portal.kernel.json.JSONArraycom.liferay.portal.kernel.json.JSONExceptionpublic int length()
length in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(boolean value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(double value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(int value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(com.liferay.portal.kernel.json.JSONArray value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(com.liferay.portal.kernel.json.JSONObject value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(long value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(Object value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(String value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic void readExternal(ObjectInput objectInput)
throws IOException
readExternal in interface ExternalizableIOExceptionpublic String toJSONString()
toJSONString in interface com.liferay.portal.kernel.json.JSONSerializablepublic String toString()
toString in interface com.liferay.portal.kernel.json.JSONArraytoString in class Objectpublic String toString(int indentFactor)
throws com.liferay.portal.kernel.json.JSONException
toString in interface com.liferay.portal.kernel.json.JSONArraycom.liferay.portal.kernel.json.JSONExceptionpublic Writer write(Writer writer)
throws com.liferay.portal.kernel.json.JSONException
write in interface com.liferay.portal.kernel.json.JSONArraycom.liferay.portal.kernel.json.JSONExceptionpublic void writeExternal(ObjectOutput objectOutput)
throws IOException
writeExternal in interface ExternalizableIOException