public class JSONArray extends JSONParser implements List<Object>, Cloneable, RandomAccess, Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object o) |
boolean |
addAll(Collection<?> c) |
boolean |
addAll(int index,
Collection<?> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Object |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Object> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Object> |
listIterator() |
ListIterator<Object> |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
Object |
set(int index,
Object element) |
int |
size() |
List<Object> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
parse, parseArray, parseArray, parseObject, parseObject, toJSONStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<Object>containsAll 在接口中 List<Object>public boolean addAll(Collection<?> c)
public boolean addAll(int index,
Collection<?> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int lastIndexOf(Object o)
lastIndexOf 在接口中 List<Object>public ListIterator<Object> listIterator()
listIterator 在接口中 List<Object>public ListIterator<Object> listIterator(int index)
listIterator 在接口中 List<Object>Copyright © 2025. All rights reserved.