public class GsonArray extends JSONArray
JSONArray.Builder| Constructor and Description |
|---|
GsonArray() |
GsonArray(com.google.gson.JsonArray array) |
GsonArray(List<Object> list) |
finalize, getClass, notify, notifyAll, toString, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic GsonArray(com.google.gson.JsonArray array)
public GsonArray()
public com.google.gson.JsonArray getRawObject()
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(Object obj)
public boolean remove(Object o)
public JSONArray fluentRemove(Object o)
fluentRemove in class JSONArraypublic boolean containsAll(Collection<? extends Object> c)
public boolean addAll(Collection<? extends Object> c)
public JSONArray fluentAddAll(Collection<? extends Object> c)
fluentAddAll in class JSONArraypublic boolean addAll(int index,
Collection<? extends Object> c)
public JSONArray fluentAddAll(int index, Collection<? extends Object> c)
fluentAddAll in class JSONArraypublic boolean removeAll(Collection<? extends Object> c)
public JSONArray fluentRemoveAll(Collection<?> c)
fluentRemoveAll in class JSONArraypublic boolean retainAll(Collection<?> c)
public JSONArray fluentRetainAll(Collection<?> c)
fluentRetainAll in class JSONArraypublic void clear()
public JSONArray fluentClear()
fluentClear in class JSONArraypublic void add(int index,
Object element)
public Object remove(int index)
public JSONArray fluentRemove(int index)
fluentRemove in class JSONArraypublic int indexOf(Object o)
public int lastIndexOf(Object o)
public ListIterator<Object> listIterator()
public ListIterator<Object> listIterator(int index)
public Object get(int index)
public JSONObject getJSONObject(int index)
getJSONObject in class JSONArraypublic JSONArray getJSONArray(int index)
getJSONArray in class JSONArraypublic <T> T getObject(int index,
Class<T> clazz)
public Boolean getBoolean(int index)
getBoolean in class JSONArraypublic boolean getBooleanValue(int index)
getBooleanValue in class JSONArraypublic byte getByteValue(int index)
getByteValue in class JSONArraypublic short getShortValue(int index)
getShortValue in class JSONArraypublic Integer getInteger(int index)
getInteger in class JSONArraypublic int getIntValue(int index)
getIntValue in class JSONArraypublic long getLongValue(int index)
getLongValue in class JSONArraypublic float getFloatValue(int index)
getFloatValue in class JSONArraypublic double getDoubleValue(int index)
getDoubleValue in class JSONArraypublic BigDecimal getBigDecimal(int index)
getBigDecimal in class JSONArraypublic BigInteger getBigInteger(int index)
getBigInteger in class JSONArraypublic Date getSqlDate(int index)
getSqlDate in class JSONArraypublic Timestamp getTimestamp(int index)
getTimestamp in class JSONArraypublic <T> List<T> toJavaList(Class<T> clazz)
toJavaList in class JSONArraypublic boolean equals(Object obj)
public int hashCode()
public String toJSONString()
toJSONString in class JSONArrayCopyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.