Method Summary |
|
public boolean | add(E element) Adds a element at the end of the list. |
public void | add(int index, E element) Inserts the specified element at the specified position in this list. |
public boolean | addAll(Collection<? extends E> elements) Appends all of the elements in the specified collection to the end of
this list. |
public boolean | addAll(int index, Collection<? extends E> elements) Inserts all of the elements in the specified collection into this list at
the specified position. |
public void | clear() Removes all of the elements from this list. |
public boolean | contains(Object element) Returns true if this list contains the specified element.
Parameters: element - The element to find. |
public boolean | containsAll(Collection> elements) Returns true if this list contains all of the elements of the specified
collection.
Parameters: elements - The collection of elements to find. |
public boolean | equals(Object o) Compares the specified object with this list for equality.
Parameters: o - The object to be compared for equality with this list. |
public E | get(int index) Returns the element at the specified position in this list.
Parameters: index - The element position. |
protected List<E> | getDelegate() Returns the delegate list. |
public int | hashCode() Returns the hash code value for this list. |
public int | indexOf(Object element) Returns the index in this list of the first occurrence of the specified
element, or -1 if this list does not contain this element.
Parameters: element - The element to find. |
public boolean | isEmpty() Returns true if this list contains no elements. |
public Iterator<E> | iterator() Returns an iterator over the elements in this list in proper sequence. |
public int | lastIndexOf(Object element) Returns the index in this list of the last occurrence of the specified
element, or -1 if this list does not contain this element. |
public ListIterator<E> | listIterator() Returns a list iterator of the elements in this list (in proper
sequence). |
public ListIterator<E> | listIterator(int index) Returns a list iterator of the elements in this list (in proper
sequence), starting at the specified position in this list. |
public E | remove(int index) Removes the element at the specified position in this list. |
public boolean | remove(Object element) Removes the first occurrence in this list of the specified element. |
public boolean | removeAll(Collection> elements) Removes from this list all the elements that are contained in the
specified collection.
Parameters: elements - The collection of element to remove. |
public boolean | retainAll(Collection> elements) RemovesRetains only the elements in this list that are contained in the
specified collection.
Parameters: elements - The collection of element to retain. |
public E | set(int index, E element) Replaces the element at the specified position in this list with the
specified element. |
public int | size() Returns the number of elements in this list. |
public List<E> | subList(int fromIndex, int toIndex) Returns a view of the portion of this list between the specified
fromIndex, inclusive, and toIndex, exclusive.
Parameters: fromIndex - The start position. Parameters: toIndex - The end position (exclusive). |
public E[] | toArray() Returns an array containing all of the elements in this list in proper
sequence. |
public T[] | toArray(T[] a) Returns an array containing all of the elements in this list in proper
sequence; the runtime type of the returned array is that of the specified
array. |