Package com.liferay.portal.json
Class JSONArrayImpl
Object
com.liferay.portal.json.JSONArrayImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.json.JSONArray,com.liferay.portal.kernel.json.JSONSerializable,Externalizable,Serializable,Iterable
- Author:
- Brian Wing Shun Chan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJSONArrayImpl(String json) JSONArrayImpl(Collection<?> collection) JSONArrayImpl(org.json.JSONArray jsonArray) -
Method Summary
Modifier and TypeMethodDescriptionget(int index) booleangetBoolean(int index) doublegetDouble(int index) intgetInt(int index) org.json.JSONArraycom.liferay.portal.kernel.json.JSONArraygetJSONArray(int index) com.liferay.portal.kernel.json.JSONObjectgetJSONObject(int index) longgetLong(int index) getString(int index) booleanisNull(int index) iterator()intlength()com.liferay.portal.kernel.json.JSONArrayput(boolean value) com.liferay.portal.kernel.json.JSONArrayput(double value) com.liferay.portal.kernel.json.JSONArrayput(int value) com.liferay.portal.kernel.json.JSONArrayput(long value) com.liferay.portal.kernel.json.JSONArraycom.liferay.portal.kernel.json.JSONArrayput(com.liferay.portal.kernel.json.JSONArray jsonArray) com.liferay.portal.kernel.json.JSONArrayput(com.liferay.portal.kernel.json.JSONObject jsonObject) com.liferay.portal.kernel.json.JSONArraycom.liferay.portal.kernel.json.JSONArrayvoidreadExternal(ObjectInput objectInput) toString()toString(int indentFactor) voidwriteExternal(ObjectOutput objectOutput) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
JSONArrayImpl
public JSONArrayImpl() -
JSONArrayImpl
-
JSONArrayImpl
public JSONArrayImpl(org.json.JSONArray jsonArray) -
JSONArrayImpl
- Throws:
com.liferay.portal.kernel.json.JSONException
-
-
Method Details
-
get
- Specified by:
getin interfacecom.liferay.portal.kernel.json.JSONArray
-
getBoolean
public boolean getBoolean(int index) - Specified by:
getBooleanin interfacecom.liferay.portal.kernel.json.JSONArray
-
getDouble
public double getDouble(int index) - Specified by:
getDoublein interfacecom.liferay.portal.kernel.json.JSONArray
-
getInt
public int getInt(int index) - Specified by:
getIntin interfacecom.liferay.portal.kernel.json.JSONArray
-
getJSONArray
public org.json.JSONArray getJSONArray() -
getJSONArray
public com.liferay.portal.kernel.json.JSONArray getJSONArray(int index) - Specified by:
getJSONArrayin interfacecom.liferay.portal.kernel.json.JSONArray
-
getJSONObject
public com.liferay.portal.kernel.json.JSONObject getJSONObject(int index) - Specified by:
getJSONObjectin interfacecom.liferay.portal.kernel.json.JSONArray
-
getLong
public long getLong(int index) - Specified by:
getLongin interfacecom.liferay.portal.kernel.json.JSONArray
-
getString
- Specified by:
getStringin interfacecom.liferay.portal.kernel.json.JSONArray
-
isNull
public boolean isNull(int index) - Specified by:
isNullin interfacecom.liferay.portal.kernel.json.JSONArray
-
iterator
-
join
- Specified by:
joinin interfacecom.liferay.portal.kernel.json.JSONArray- Throws:
com.liferay.portal.kernel.json.JSONException
-
length
public int length()- Specified by:
lengthin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
public com.liferay.portal.kernel.json.JSONArray put(boolean value) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
public com.liferay.portal.kernel.json.JSONArray put(double value) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
public com.liferay.portal.kernel.json.JSONArray put(int value) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
public com.liferay.portal.kernel.json.JSONArray put(com.liferay.portal.kernel.json.JSONArray jsonArray) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
public com.liferay.portal.kernel.json.JSONArray put(com.liferay.portal.kernel.json.JSONObject jsonObject) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
public com.liferay.portal.kernel.json.JSONArray put(long value) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
- Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
put
public com.liferay.portal.kernel.json.JSONArray put(com.liferay.petra.function.UnsafeSupplier<Object, Exception> valueUnsafeSupplier) - Specified by:
putin interfacecom.liferay.portal.kernel.json.JSONArray
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
toJSONString
- Specified by:
toJSONStringin interfacecom.liferay.portal.kernel.json.JSONSerializable
-
toString
-
toString
- Specified by:
toStringin interfacecom.liferay.portal.kernel.json.JSONArray- Throws:
com.liferay.portal.kernel.json.JSONException
-
write
- Specified by:
writein interfacecom.liferay.portal.kernel.json.JSONArray- Throws:
com.liferay.portal.kernel.json.JSONException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-