public class JSONArrayImpl
extends java.lang.Object
implements com.liferay.portal.kernel.json.JSONArray
| Constructor and Description |
|---|
JSONArrayImpl() |
JSONArrayImpl(org.json.JSONArray jsonArray) |
JSONArrayImpl(java.lang.String json) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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) |
java.lang.String |
getString(int index) |
boolean |
isNull(int index) |
java.util.Iterator<java.lang.Object> |
iterator() |
java.lang.String |
join(java.lang.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(java.lang.Object value) |
com.liferay.portal.kernel.json.JSONArray |
put(java.lang.String value) |
void |
readExternal(java.io.ObjectInput objectInput) |
java.lang.String |
toJSONString() |
java.lang.String |
toString() |
java.lang.String |
toString(int indentFactor) |
java.io.Writer |
write(java.io.Writer writer) |
void |
writeExternal(java.io.ObjectOutput objectOutput) |
public JSONArrayImpl()
public JSONArrayImpl(org.json.JSONArray jsonArray)
public JSONArrayImpl(java.lang.String json)
throws com.liferay.portal.kernel.json.JSONException
com.liferay.portal.kernel.json.JSONExceptionpublic java.lang.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 java.lang.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 java.util.Iterator<java.lang.Object> iterator()
iterator in interface java.lang.Iterablepublic java.lang.String join(java.lang.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(java.lang.Object value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic com.liferay.portal.kernel.json.JSONArray put(java.lang.String value)
put in interface com.liferay.portal.kernel.json.JSONArraypublic void readExternal(java.io.ObjectInput objectInput)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionpublic java.lang.String toJSONString()
toJSONString in interface com.liferay.portal.kernel.json.JSONSerializablepublic java.lang.String toString()
toString in interface com.liferay.portal.kernel.json.JSONArraytoString in class java.lang.Objectpublic java.lang.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 java.io.Writer write(java.io.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(java.io.ObjectOutput objectOutput)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException