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, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public 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 JSONArray
public boolean containsAll(Collection<? extends Object> c)
public boolean addAll(Collection<? extends Object> c)
public JSONArray fluentAddAll(Collection<? extends Object> c)
fluentAddAll
in class JSONArray
public boolean addAll(int index, Collection<? extends Object> c)
public JSONArray fluentAddAll(int index, Collection<? extends Object> c)
fluentAddAll
in class JSONArray
public boolean removeAll(Collection<? extends Object> c)
public JSONArray fluentRemoveAll(Collection<?> c)
fluentRemoveAll
in class JSONArray
public boolean retainAll(Collection<?> c)
public JSONArray fluentRetainAll(Collection<?> c)
fluentRetainAll
in class JSONArray
public void clear()
public JSONArray fluentClear()
fluentClear
in class JSONArray
public void add(int index, Object element)
public Object remove(int index)
public JSONArray fluentRemove(int index)
fluentRemove
in class JSONArray
public 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 JSONArray
public JSONArray getJSONArray(int index)
getJSONArray
in class JSONArray
public <T> T getObject(int index, Class<T> clazz)
public Boolean getBoolean(int index)
getBoolean
in class JSONArray
public boolean getBooleanValue(int index)
getBooleanValue
in class JSONArray
public byte getByteValue(int index)
getByteValue
in class JSONArray
public short getShortValue(int index)
getShortValue
in class JSONArray
public Integer getInteger(int index)
getInteger
in class JSONArray
public int getIntValue(int index)
getIntValue
in class JSONArray
public long getLongValue(int index)
getLongValue
in class JSONArray
public float getFloatValue(int index)
getFloatValue
in class JSONArray
public double getDoubleValue(int index)
getDoubleValue
in class JSONArray
public BigDecimal getBigDecimal(int index)
getBigDecimal
in class JSONArray
public BigInteger getBigInteger(int index)
getBigInteger
in class JSONArray
public Date getSqlDate(int index)
getSqlDate
in class JSONArray
public Timestamp getTimestamp(int index)
getTimestamp
in class JSONArray
public <T> List<T> toJavaList(Class<T> clazz)
toJavaList
in class JSONArray
public boolean equals(Object obj)
public int hashCode()
public String toJSONString()
toJSONString
in class JSONArray
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.