Method Summary |
|
public void | add(int location, E object) Inserts the specified object into this Vector at the specified location.
The object is inserted before any previous element at the specified
location. |
public boolean | add(E object) Adds the specified object at the end of this List. |
public boolean | addAll(int location, Collection<? extends E> collection) Inserts the objects in the specified Collection at the specified location
in this List. |
public boolean | addAll(Collection<? extends E> collection) Adds the objects in the specified Collection to the end of this List. |
public void | clear() Removes all elements from this List, leaving it empty. |
public boolean | contains(Object object) Searches this List for the specified object. |
public boolean | containsAll(Collection> collection) Searches this List for all objects in the specified Collection. |
public boolean | equals(Object object) Compares the argument to the receiver, and answers true if they represent
the same object using a class specific comparison.
Parameters: object - Object the object to compare with this object. |
public E | get(int location) Answers the element at the specified location in this List. |
public int | hashCode() Answers an integer hash code for the receiver. |
public int | indexOf(Object object) Searches this List for the specified object and returns the index of the
first occurrence. |
public boolean | isEmpty() Answers if this List has no elements, a size of zero. |
public Iterator<E> | iterator() Answers an Iterator on the elements of this List. |
public int | lastIndexOf(Object object) Searches this List for the specified object and returns the index of the
last occurrence. |
public ListIterator<E> | listIterator() Answers a ListIterator on the elements of this List. |
public ListIterator<E> | listIterator(int location) Answers a ListIterator on the elements of this List. |
public E | remove(int location) Removes the object at the specified location from this List. |
public boolean | remove(Object object) Removes the first occurrence of the specified object from this List. |
public boolean | removeAll(Collection> collection) Removes all occurrences in this List of each object in the specified
Collection. |
public boolean | retainAll(Collection> collection) Removes all objects from this List that are not contained in the
specified Collection. |
public E | set(int location, E object) Replaces the element at the specified location in this List with the
specified object. |
public int | size() Answers the number of elements in this List. |
public List<E> | subList(int start, int end) Answers a List of the specified portion of this List from the start index
to one less than the end index. |
public Object[] | toArray() Answers an array containing all elements contained in this List. |
public T[] | toArray(T[] array) Answers an array containing all elements contained in this List. |