Method Summary |
|
public void | add(int location, E object) Adds the specified object into this Vector at the specified location. |
public synchronized boolean | add(E object) Adds the specified object at the end of this Vector. |
public synchronized boolean | addAll(int location, Collection<? extends E> collection) Inserts the objects in the specified Collection at the specified location
in this Vector. |
public synchronized boolean | addAll(Collection<? extends E> collection) Adds the objects in the specified Collection to the end of this Vector. |
public synchronized void | addElement(E object) Adds the specified object at the end of this Vector. |
public synchronized int | capacity() Answers the number of elements this Vector can hold without growing. |
public void | clear() Removes all elements from this Vector, leaving it empty. |
public synchronized Object | clone() Answers a new Vector with the same elements, size, capacity and capacity
increment as this Vector. |
public boolean | contains(Object object) Searches this Vector for the specified object. |
public synchronized boolean | containsAll(Collection> collection) Searches this Vector for all objects in the specified Collection. |
public synchronized void | copyInto(Object[] elements) Attempts to copy elements contained by this Vector into
the corresponding elements of the supplied Object array. |
public synchronized E | elementAt(int location) Answers the element at the specified location in this Vector. |
public Enumeration<E> | elements() Answers an Enumeration on the elements of this Vector. |
public synchronized void | ensureCapacity(int minimumCapacity) Ensures that this Vector can hold the specified number of elements
without growing. |
public synchronized boolean | equals(Object object) Compares the specified object to this Vector and answer if they are
equal. |
public synchronized E | firstElement() Answers the first element in this Vector. |
public E | get(int location) Answers the element at the specified location in this Vector. |
public synchronized int | hashCode() Answers an integer hash code for the receiver. |
public int | indexOf(Object object) Searches in this Vector for the index of the specified object. |
public synchronized int | indexOf(Object object, int location) Searches in this Vector for the index of the specified object. |
public synchronized void | insertElementAt(E object, int location) Inserts the specified object into this Vector at the specified location.
This object is inserted before any previous element at the specified
location. |
public synchronized boolean | isEmpty() Answers if this Vector has no elements, a size of zero. |
public synchronized E | lastElement() Answers the last element in this Vector. |
public synchronized int | lastIndexOf(Object object) Searches in this Vector for the index of the specified object. |
public synchronized int | lastIndexOf(Object object, int location) Searches in this Vector for the index of the specified object. |
public synchronized E | remove(int location) |
public boolean | remove(Object object) Removes the first occurrence, starting at the beginning and moving
towards the end, of the specified object from this Vector. |
public synchronized boolean | removeAll(Collection> collection) Removes all occurrences in this Vector of each object in the specified
Collection. |
public synchronized void | removeAllElements() Removes all elements from this Vector, leaving the size zero and the
capacity unchanged. |
public synchronized boolean | removeElement(Object object) Removes the first occurrence, starting at the beginning and moving
towards the end, of the specified object from this Vector. |
public synchronized void | removeElementAt(int location) Removes the element found at index position location from
this Vector and decrements the size accordingly. |
protected void | removeRange(int start, int end) Removes the objects in the specified range from the start to the, but not
including, end index. |
public synchronized boolean | retainAll(Collection> collection) Removes all objects from this Vector that are not contained in the
specified Collection. |
public synchronized E | set(int location, E object) Replaces the element at the specified location in this Vector with the
specified object. |
public synchronized void | setElementAt(E object, int location) Replaces the element at the specified location in this Vector with the
specified object. |
public synchronized void | setSize(int length) Sets the size of this Vector to the specified size. |
public synchronized int | size() Answers the number of elements in this Vector. |
public synchronized List<E> | subList(int start, int end) Answers a List of the specified portion of this Vector from the start
index to one less than the end index. |
public synchronized Object[] | toArray() Answers a new array containing all elements contained in this Vector. |
public synchronized T[] | toArray(T[] contents) Answers an array containing all elements contained in this Vector. |
public synchronized String | toString() Answers the string representation of this Vector. |
public synchronized void | trimToSize() Sets the capacity of this Vector to be the same as the size. |