Package cn.leancloud.gson
Class GsonArray
java.lang.Object
cn.leancloud.json.JSONArray
cn.leancloud.gson.GsonArray
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Object>,Collection<Object>,List<Object>,SequencedCollection<Object>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class cn.leancloud.json.JSONArray
JSONArray.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends Object> c) booleanaddAll(Collection<? extends Object> c) voidclear()clone()booleanbooleancontainsAll(Collection<? extends Object> c) booleanfluentAddAll(int index, Collection<? extends Object> c) fluentAddAll(Collection<? extends Object> c) fluentRemove(int index) fluentRemoveAll(Collection<?> c) fluentRetainAll(Collection<?> c) get(int index) getBigDecimal(int index) getBigInteger(int index) getBoolean(int index) booleangetBooleanValue(int index) getByte(int index) bytegetByteValue(int index) getDate(int index) getDouble(int index) doublegetDoubleValue(int index) getFloat(int index) floatgetFloatValue(int index) getInteger(int index) intgetIntValue(int index) getJSONArray(int index) getJSONObject(int index) getLong(int index) longgetLongValue(int index) <T> T<T> Tcom.google.gson.JsonArraygetShort(int index) shortgetShortValue(int index) getSqlDate(int index) getString(int index) getTimestamp(int index) inthashCode()intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<? extends Object> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) <T> List<T> toJavaList(Class<T> clazz) Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
GsonArray
public GsonArray(com.google.gson.JsonArray array) -
GsonArray
-
GsonArray
public GsonArray()
-
-
Method Details
-
getRawObject
public com.google.gson.JsonArray getRawObject() -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
fluentAdd
-
remove
-
fluentRemove
- Specified by:
fluentRemovein classJSONArray
-
containsAll
-
addAll
-
fluentAddAll
- Specified by:
fluentAddAllin classJSONArray
-
addAll
-
fluentAddAll
- Specified by:
fluentAddAllin classJSONArray
-
removeAll
-
fluentRemoveAll
- Specified by:
fluentRemoveAllin classJSONArray
-
retainAll
-
fluentRetainAll
- Specified by:
fluentRetainAllin classJSONArray
-
clear
public void clear() -
fluentClear
- Specified by:
fluentClearin classJSONArray
-
set
-
fluentSet
-
add
-
fluentAdd
-
remove
-
fluentRemove
- Specified by:
fluentRemovein classJSONArray
-
indexOf
-
lastIndexOf
-
listIterator
-
listIterator
-
subList
-
get
-
getJSONObject
- Specified by:
getJSONObjectin classJSONArray
-
getJSONArray
- Specified by:
getJSONArrayin classJSONArray
-
getObject
-
getObject
-
getBoolean
- Specified by:
getBooleanin classJSONArray
-
getBooleanValue
public boolean getBooleanValue(int index) - Specified by:
getBooleanValuein classJSONArray
-
getByte
-
getByteValue
public byte getByteValue(int index) - Specified by:
getByteValuein classJSONArray
-
getShort
-
getShortValue
public short getShortValue(int index) - Specified by:
getShortValuein classJSONArray
-
getInteger
- Specified by:
getIntegerin classJSONArray
-
getIntValue
public int getIntValue(int index) - Specified by:
getIntValuein classJSONArray
-
getLong
-
getLongValue
public long getLongValue(int index) - Specified by:
getLongValuein classJSONArray
-
getFloat
-
getFloatValue
public float getFloatValue(int index) - Specified by:
getFloatValuein classJSONArray
-
getDouble
-
getDoubleValue
public double getDoubleValue(int index) - Specified by:
getDoubleValuein classJSONArray
-
getBigDecimal
- Specified by:
getBigDecimalin classJSONArray
-
getBigInteger
- Specified by:
getBigIntegerin classJSONArray
-
getString
-
getDate
-
getSqlDate
- Specified by:
getSqlDatein classJSONArray
-
getTimestamp
- Specified by:
getTimestampin classJSONArray
-
toJavaList
- Specified by:
toJavaListin classJSONArray
-
clone
-
equals
-
hashCode
public int hashCode() -
toJSONString
- Specified by:
toJSONStringin classJSONArray
-