public class JSONArray extends JSON implements List<Object>, Cloneable, RandomAccess, Serializable
DEFAULT_GENERATE_FEATURE, DEFAULT_PARSER_FEATURE, DEFAULT_TYPE_KEY, defaultLocale, defaultTimeZone, DEFFAULT_DATE_FORMAT, VERSION
Constructor and Description |
---|
JSONArray() |
JSONArray(int initialCapacity) |
JSONArray(List<Object> list) |
addMixInAnnotations, clearMixInAnnotations, getMixInAnnotations, handleResovleTask, isValid, isValidArray, isValidObject, parse, parse, parse, parse, parse, parse, parse, parse, parse, parseArray, parseArray, parseArray, parseArray, parseArray, parseArray, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, removeMixInAnnotations, setDefaultTypeKey, toJavaObject, toJavaObject, toJavaObject, toJavaObject, toJSON, toJSON, toJSON, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytesWithFastJsonConfig, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONStringWithDateFormat, toJSONStringZ, toString, toString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONStringTo, writeJSONStringWithFastJsonConfig
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public Object getRelatedArray()
public void setRelatedArray(Object relatedArray)
public Type getComponentType()
public void setComponentType(Type componentType)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(Object e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Object>
containsAll
in interface List<Object>
public boolean addAll(Collection<?> c)
public JSONArray fluentAddAll(Collection<?> c)
public boolean addAll(int index, Collection<?> c)
public JSONArray fluentAddAll(int index, Collection<?> c)
public boolean removeAll(Collection<?> c)
public JSONArray fluentRemoveAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public JSONArray fluentRetainAll(Collection<?> c)
public void clear()
public JSONArray fluentClear()
public JSONArray fluentRemove(int index)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Object>
public ListIterator<Object> listIterator()
listIterator
in interface List<Object>
public ListIterator<Object> listIterator(int index)
listIterator
in interface List<Object>
public JSONObject getJSONObject(int index)
public JSONArray getJSONArray(int index)
public <T> T getObject(int index, Class<T> clazz)
public <T> T getObject(int index, Type type)
public Boolean getBoolean(int index)
public boolean getBooleanValue(int index)
public Byte getByte(int index)
public byte getByteValue(int index)
public Short getShort(int index)
public short getShortValue(int index)
public Integer getInteger(int index)
public int getIntValue(int index)
public Long getLong(int index)
public long getLongValue(int index)
public Float getFloat(int index)
public float getFloatValue(int index)
public Double getDouble(int index)
public double getDoubleValue(int index)
public BigDecimal getBigDecimal(int index)
public BigInteger getBigInteger(int index)
public String getString(int index)
public Date getDate(int index)
public Object getSqlDate(int index)
public Object getTimestamp(int index)
public boolean equals(Object obj)
Copyright © 2012–2022 Alibaba Group. All rights reserved.