public class WeakArrayList<T> extends AbstractList<T>
modCount| 构造器和说明 |
|---|
WeakArrayList() |
WeakArrayList(Collection<? extends T> c) |
WeakArrayList(int initialCapacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(int index,
T element) |
protected void |
assertRange(int index,
boolean allowLast) |
void |
ensureCapacity(int minCapacity) |
int |
expurge() |
T |
get(int index) |
T |
remove(int index) |
T |
set(int index,
T element) |
int |
size() |
String |
toString() |
void |
trimToSize() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic WeakArrayList(int initialCapacity)
public WeakArrayList()
public WeakArrayList(Collection<? extends T> c)
public String toString()
toString 在类中 AbstractCollection<T>public void ensureCapacity(int minCapacity)
public void trimToSize()
public int expurge()
protected void assertRange(int index,
boolean allowLast)
public int size()
size 在接口中 Collection<T>size 在接口中 List<T>size 在类中 AbstractCollection<T>Copyright © 2022–2023. All rights reserved.