public class StaticLinkedList<E> extends AbstractListAdaptor<E>
| 构造器和说明 |
|---|
StaticLinkedList() |
StaticLinkedList(int capacity)
针对数组特殊处理
1.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
E |
remove(int index)
[a] [b] [c] [d]
比如像删除 [b]
1.
|
addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, set, size, subList, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic StaticLinkedList(int capacity)
capacity - 容量public StaticLinkedList()
public boolean add(E e)
add 在接口中 Collection<E>add 在接口中 List<E>add 在类中 AbstractListAdaptor<E>public E remove(int index)
Copyright © 2020. All rights reserved.