List (java.util)
接口主要方法
public interface List<E> extends Collection<E> {
//重要
boolean add(E e);
boolean remove(Object o);
int size();
boolean isEmpty();
//次要
boolean addAll(Collection<? extends E> c);
boolean removeAll(Collection<?> c);
boolean contains(Object o);
boolean containsAll(Collection<?> c);
boolean retainAll(Collection<?> c);
Iterator<E> iterator();
boolean equals(Object o);
}
- java.util
AbstractList
AbstractSequentialList
ArrayList
ArrayList
Arrays
Collections
LinkedList
Stack
Vector