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 jsonArray) |
com.liferay.portal.kernel.json.JSONArray |
put(com.liferay.portal.kernel.json.JSONObject jsonObject) |
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) |
com.liferay.portal.kernel.json.JSONArray |
put(com.liferay.petra.function.UnsafeSupplier<Object,Exception> valueUnsafeSupplier) |
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.JSONException
public Object get(int index)
get
in interface com.liferay.portal.kernel.json.JSONArray
public boolean getBoolean(int index)
getBoolean
in interface com.liferay.portal.kernel.json.JSONArray
public double getDouble(int index)
getDouble
in interface com.liferay.portal.kernel.json.JSONArray
public int getInt(int index)
getInt
in interface com.liferay.portal.kernel.json.JSONArray
public org.json.JSONArray getJSONArray()
public com.liferay.portal.kernel.json.JSONArray getJSONArray(int index)
getJSONArray
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONObject getJSONObject(int index)
getJSONObject
in interface com.liferay.portal.kernel.json.JSONArray
public long getLong(int index)
getLong
in interface com.liferay.portal.kernel.json.JSONArray
public String getString(int index)
getString
in interface com.liferay.portal.kernel.json.JSONArray
public boolean isNull(int index)
isNull
in interface com.liferay.portal.kernel.json.JSONArray
public Iterator<Object> iterator()
iterator
in interface Iterable
public String join(String separator) throws com.liferay.portal.kernel.json.JSONException
join
in interface com.liferay.portal.kernel.json.JSONArray
com.liferay.portal.kernel.json.JSONException
public int length()
length
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(boolean value)
put
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(double value)
put
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(int value)
put
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(com.liferay.portal.kernel.json.JSONArray jsonArray)
put
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(com.liferay.portal.kernel.json.JSONObject jsonObject)
put
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(long value)
put
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(Object value)
put
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(String value)
put
in interface com.liferay.portal.kernel.json.JSONArray
public com.liferay.portal.kernel.json.JSONArray put(com.liferay.petra.function.UnsafeSupplier<Object,Exception> valueUnsafeSupplier)
put
in interface com.liferay.portal.kernel.json.JSONArray
public void readExternal(ObjectInput objectInput) throws IOException
readExternal
in interface Externalizable
IOException
public String toJSONString()
toJSONString
in interface com.liferay.portal.kernel.json.JSONSerializable
public String toString()
toString
in interface com.liferay.portal.kernel.json.JSONArray
toString
in class Object
public String toString(int indentFactor) throws com.liferay.portal.kernel.json.JSONException
toString
in interface com.liferay.portal.kernel.json.JSONArray
com.liferay.portal.kernel.json.JSONException
public Writer write(Writer writer) throws com.liferay.portal.kernel.json.JSONException
write
in interface com.liferay.portal.kernel.json.JSONArray
com.liferay.portal.kernel.json.JSONException
public void writeExternal(ObjectOutput objectOutput) throws IOException
writeExternal
in interface Externalizable
IOException