| Modifier and Type | Field and Description |
|---|---|
| private Vector | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
index at which the specified element is to be inserted index, E element to be inserted element)Overrides java. Implements java. |
| public boolean | addAll(Collection<? extends E>
elements to be inserted into this Vector c)Overrides org. Implements java. |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<? extends E> elements to be inserted into this Vector c)Overrides org. Implements java. |
| public E | elementAt(int
an index into this vector index)Overrides org. |
| public Enumeration | elements()
Overrides org. |
| public E | firstElement()
Overrides org. 0) of
this vector.
|
| public E | get(int
index of the element to return index)Overrides org. Implements java. |
| public int | indexOf(Object
element to search for elem, int index to start searching from index)Overrides org. index, or returns -1 if
the element is not found.
|
| public Iterator | iterator()
Overrides org. Implements java. |
| public E | lastElement()
Overrides org. |
| public int | lastIndexOf(Object
element to search for elem, int index to start searching backwards from index)Overrides org. index, or returns -1 if
the element is not found.
|
| public ListIterator | listIterator(final int
index of the first element to be returned from the
list iterator (by a call to index)next)Overrides org. Implements java. |
| public E | remove(int
the index of the element to be removed index)Overrides org. Implements java. |
| public E | set(int
index of the element to replace index, E element to be stored at the specified position element)Overrides org. Implements java. |
| public void | setElementAt(E
what the component is to be set to obj, int the specified index index)Overrides org. index of this
vector to be the specified object.
|
| public int | size()
Overrides org. Implements java. |
| public Object[] | toArray()
Overrides org. Implements java. |
| public <T> T[] | toArray(T[]
the array into which the elements of the Vector are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. a)Overrides org. Implements java. |
| l | back to summary |
|---|---|
| private Vector<E> l | |
| offset | back to summary |
|---|---|
| private int offset | |
| size | back to summary |
|---|---|
| private int size | |
| NonSynchronizedSubVector | back to summary |
|---|---|
| public NonSynchronizedSubVector(Vector<E> list, int fromIndex, int toIndex) | |
| add | back to summary |
|---|---|
| public void add(int index, E element) Overrides java. Implements java. Doc from java. Inserts the specified element at the specified position in this Vector. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends E> c) Overrides org. Implements java. Doc from java. Appends all of the elements in the specified Collection to the end of this Vector, in the order that they are returned by the specified Collection's Iterator. The behavior of this operation is undefined if the specified Collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified Collection is this Vector, and this Vector is nonempty.)
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, Collection<? extends E> c) Overrides org. Implements java. Doc from java. Inserts all of the elements in the specified Collection into this Vector at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the Vector in the order that they are returned by the specified Collection's iterator.
| |
| elementAt | back to summary |
|---|---|
| public E elementAt(int index) Overrides org. Doc from java. Returns the component at the specified index. This method is identical in functionality to the
| |
| elements | back to summary |
|---|---|
| public Enumeration Overrides org. Doc from java. Returns an enumeration of the components of this vector. The
returned
| |
| firstElement | back to summary |
|---|---|
| public E firstElement() Overrides org. Doc from java. Returns the first component (the item at index
| |
| get | back to summary |
|---|---|
| public E get(int index) Overrides org. Implements java. Doc from java. Returns the element at the specified position in this Vector.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(Object elem, int index) Overrides org. Doc from java. Returns the index of the first occurrence of the specified element in
this vector, searching forwards from | |
| iterator | back to summary |
|---|---|
| public Iterator Overrides org. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence. The returned iterator is fail-fast. | |
| lastElement | back to summary |
|---|---|
| public E lastElement() Overrides org. Doc from java. Returns the last component of the vector.
| |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(Object elem, int index) Overrides org. Doc from java. Returns the index of the last occurrence of the specified element in
this vector, searching backwards from | |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides org. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
The specified index indicates the first element that would be
returned by an initial call to The returned list iterator is fail-fast.
| |
| remove | back to summary |
|---|---|
| public E remove(int index) Overrides org. Implements java. Doc from java. Removes the element at the specified position in this Vector. Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the Vector.
| |
| set | back to summary |
|---|---|
| public E set(int index, E element) Overrides org. Implements java. Doc from java. Replaces the element at the specified position in this Vector with the specified element.
| |
| setElementAt | back to summary |
|---|---|
| public void setElementAt(E obj, int index) Overrides org. Doc from java. Sets the component at the specified The index must be a value greater than or equal to This method is identical in functionality to the
| |
| size | back to summary |
|---|---|
| public int size() Overrides org. Implements java. Doc from java. Returns the number of components in this vector.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Overrides org. Implements java. Doc from java. Returns an array containing all of the elements in this Vector in the correct order.
| |
| toArray | back to summary |
|---|---|
| public <T> T[] toArray(T[] a) Overrides org. Implements java. Doc from java. Returns an array containing all of the elements in this Vector in the correct order; the runtime type of the returned array is that of the specified array. If the Vector fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this Vector. If the Vector fits in the specified array with room to spare (i.e., the array has more elements than the Vector), the element in the array immediately following the end of the Vector is set to null. (This is useful in determining the length of the Vector only if the caller knows that the Vector does not contain any null elements.)
| |