public class JSONArray extends ArrayList<Object>
modCount| 构造器和说明 |
|---|
JSONArray() |
JSONArray(ArrayList<Object> raw,
boolean delegate) |
JSONArray(Collection<?> c) |
JSONArray(Collection<?> c,
boolean delegate) |
JSONArray(int initialCapacity) |
removeRangepublic JSONArray(Collection<?> c, boolean delegate)
public JSONArray(Collection<?> c)
public JSONArray(int initialCapacity)
public JSONArray()
public static JSONArray of(Collection collection)
public static JSONArray copyOf(Collection collection)
public boolean equals(Object o)
equals 在接口中 Collection<Object>equals 在接口中 List<Object>equals 在类中 AbstractList<Object>public int hashCode()
hashCode 在接口中 Collection<Object>hashCode 在接口中 List<Object>hashCode 在类中 AbstractList<Object>public JSONArray getJSONArray(int index)
public JSONObject getJSONObject(int index)
public String getString(int index)
public Double getDouble(int index)
public double getDoubleValue(int index)
public Float getFloat(int index)
public float getFloatValue(int index)
public Long getLong(int index)
public long getLongValue(int index)
public Integer getInteger(int index)
public int getIntValue(int index)
public Short getShort(int index)
public short getShortValue(int index)
public Byte getByte(int index)
public byte getByteValue(int index)
public Boolean getBoolean(int index)
public boolean getBooleanValue(int index)
public BigInteger getBigInteger(int index)
public BigDecimal getBigDecimal(int index)
public Date getDate(int index)
public Instant getInstant(int index)
public String toString()
toString 在类中 AbstractCollection<Object>public String toJSONString()
public byte[] toJSONBBytes()
public <T> T to(Type type)
public <T> T to(Class<T> type)
@Deprecated public <T> T toJavaObject(Type type)
to(Type)public <T> T[] toArray(Class<T> itemClass)
public <T> T getObject(int index,
Type type)
public <T> T getObject(int index,
Class<T> type)
public <T> T getObject(int index,
Function<JSONObject,T> creator)
public JSONObject addObject()
public JSONArray addArray()
public JSONArray fluentClear()
public JSONArray fluentRemove(int index)
public JSONArray fluentRemoveAll(Collection<?> c)
public JSONArray fluentAddAll(Collection<?> c)
public void trimToSize()
trimToSize 在类中 ArrayList<Object>public void ensureCapacity(int minCapacity)
ensureCapacity 在类中 ArrayList<Object>public int size()
public boolean isEmpty()
public boolean contains(Object o)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf 在接口中 List<Object>lastIndexOf 在类中 ArrayList<Object>public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(Object o)
public void add(int index,
Object element)
public Object remove(int index)
public boolean remove(Object o)
public void clear()
public boolean addAll(Collection<?> c)
public boolean addAll(int index,
Collection<?> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public ListIterator<Object> listIterator(int index)
listIterator 在接口中 List<Object>listIterator 在类中 ArrayList<Object>public ListIterator<Object> listIterator()
listIterator 在接口中 List<Object>listIterator 在类中 ArrayList<Object>public Spliterator<Object> spliterator()
spliterator 在接口中 Iterable<Object>spliterator 在接口中 Collection<Object>spliterator 在接口中 List<Object>spliterator 在类中 ArrayList<Object>public void replaceAll(UnaryOperator<Object> operator)
replaceAll 在接口中 List<Object>replaceAll 在类中 ArrayList<Object>public void sort(Comparator<? super Object> c)
public boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<Object>containsAll 在接口中 List<Object>containsAll 在类中 AbstractCollection<Object>Copyright © 2025 fossc. All rights reserved.