Method Summary |
|
public void | add(int location, E object) Inserts the specified object into this LinkedList at the specified
location. |
public boolean | add(E object) Adds the specified object at the end of this LinkedList. |
public boolean | addAll(int location, Collection<? extends E> collection) Inserts the objects in the specified Collection at the specified location
in this LinkedList. |
public boolean | addAll(Collection<? extends E> collection) Adds the objects in the specified Collection to this LinkedList. |
public void | addFirst(E object) Adds the specified object at the beginning of this LinkedList. |
public void | addLast(E object) Adds the specified object at the end of this LinkedList. |
public void | clear() Removes all elements from this LinkedList, leaving it empty. |
public Object | clone() Answers a new LinkedList with the same elements and size as this
LinkedList. |
public boolean | contains(Object object) Searches this LinkedList for the specified object. |
public E | element() |
public E | get(int location) |
public E | getFirst() Answers the first element in this LinkedList. |
public E | getLast() Answers the last element in this LinkedList. |
public int | indexOf(Object object) Searches this LinkedList for the specified object and returns the index
of the first occurrence. |
public int | lastIndexOf(Object object) Searches this LinkedList for the specified object and returns the index
of the last occurrence. |
public ListIterator<E> | listIterator(int location) Answers a ListIterator on the elements of this LinkedList. |
public boolean | offer(E o) |
public E | peek() |
public E | poll() |
public E | remove(int location) Removes the object at the specified location from this LinkedList. |
public boolean | remove(Object object) |
public E | remove() |
public E | removeFirst() Removes the first object from this LinkedList. |
public E | removeLast() Removes the last object from this LinkedList. |
public E | set(int location, E object) Replaces the element at the specified location in this LinkedList with
the specified object. |
public int | size() Answers the number of elements in this LinkedList. |
public Object[] | toArray() Answers a new array containing all elements contained in this LinkedList. |
public T[] | toArray(T[] contents) Answers an array containing all elements contained in this LinkedList. |