| Modifier and Type | Class and Description |
|---|---|
| private class | |
| pack-priv class | NonSynchronizedVector.ListItr
An optimized version of AbstractList.ListItr |
| pack-priv class | NonSynchronizedVector.VectorSpliterator
Similar to ArrayList Spliterator |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | add(E e, Object[] elementData, int s)
Hides java. |
| public boolean | add(E
element to be appended to this Vector o)Overrides java. Implements java. |
| public boolean | addAll(Collection<? extends E>
elements to be inserted into this Vector c)Overrides java. 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 java. Implements java. |
| public void | addElement(E
the component to be added obj)Overrides java. |
| private boolean | |
| public int | |
| public Object | |
| public boolean | containsAll(Collection<?>
a collection whose elements will be tested for containment
in this Vector c)Overrides java. Implements java. |
| public void | copyInto(Object[]
the array into which the components get copied anArray)Overrides java. |
| public E | elementAt(int
an index into this vector index)Overrides java. |
| pack-priv static <E> E | |
| pack-priv E | |
| public Enumeration | elements()
Overrides java. |
| public void | ensureCapacity(int
the desired minimum capacity minCapacity)Overrides java. |
| public boolean | equals(Object
the Object to be compared for equality with this Vector o)Overrides java. Implements java. |
| public E | firstElement()
Overrides java. 0) of
this vector.
|
| public void | forEach(Consumer<? super E>
The action to be performed for each element action)Overrides java. Overrides default java. Iterable
until all elements have been processed or the action throws an
exception.
|
| public E | get(int
index of the element to return index)Overrides java. Implements java. |
| private Object[] | grow(int
the desired minimum capacity minCapacity)Hides java. |
| private Object[] | |
| public int | hashCode()
Overrides java. Implements java. |
| public int | indexOf(Object
element to search for elem, int index to start searching from index)Overrides java. index, or returns -1 if
the element is not found.
|
| public void | insertElementAt(E
the component to insert obj, int where to insert the new component index)Overrides java. index.
|
| private static boolean | |
| public boolean | isEmpty()
Overrides java. Implements java. |
| public Iterator | iterator()
Overrides java. Implements java. |
| public E | |
| public int | lastIndexOf(Object
element to search for elem)Overrides java. Implements java. |
| public int | lastIndexOf(Object
element to search for elem, int index to start searching backwards from index)Overrides java. index, or returns -1 if
the element is not found.
|
| public ListIterator | listIterator(int
index of the first element to be returned from the
list iterator (by a call to index)next)Overrides java. Implements java. |
| public ListIterator | listIterator()
Overrides java. Implements java. |
| private static long[] | |
| public static <E> NonSynchronizedVector | |
| public static <E> NonSynchronizedVector | |
| public static <E> NonSynchronizedVector | |
| public static <E> NonSynchronizedVector | |
| private int | |
| private void | readObject(ObjectInputStream
the stream in)Hides java. Vector instance from a stream
(that is, deserializes it).
|
| public E | remove(int
the index of the element to be removed index)Overrides java. Implements java. |
| public boolean | removeAll(Collection<?>
a collection of elements to be removed from the Vector c)Overrides java. Implements java. |
| public void | removeAllElements()
Overrides java. |
| public boolean | removeElement(Object
the component to be removed obj)Overrides java. |
| public void | removeElementAt(int
the index of the object to remove index)Overrides java. |
| protected void | removeRange(int
index of first element to be removed fromIndex, int index after last element to be removed toIndex)Overrides java. fromIndex, inclusive, and toIndex, exclusive.
|
| public void | replaceAll(UnaryOperator<E>
the operator to apply to each element operator)Overrides java. Overrides default java. |
| public boolean | retainAll(Collection<?>
a collection of elements to be retained in this Vector
(all other elements are removed) c)Overrides java. Implements java. |
| public E | set(int
index of the element to replace index, E element to be stored at the specified position element)Overrides java. Implements java. |
| private static void | |
| public void | setElementAt(E
what the component is to be set to obj, int the specified index index)Overrides java. index of this
vector to be the specified object.
|
| public void | setSize(int
the new size of this vector newSize)Overrides java. |
| private void | shiftTailOverGap(Object[] es, int lo, int hi)
Erases the gap from lo to hi, by sliding down following elements.
|
| public int | size()
Overrides java. Implements java. |
| public void | sort(Comparator<? super E>
the c)Comparator used to compare list elements.
A null value indicates that the elements'
natural ordering should be usedOverrides java. Overrides default java. Comparator.
|
| public Spliterator | spliterator()
Overrides java. Overrides default java. Spliterator over the elements in this
list.
|
| public List | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Overrides java. Implements java. |
| public Object[] | toArray()
Overrides java. 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 java. Implements java. |
| public String | toString()
Overrides java. |
| public void | trimToSize()
Overrides java. |
| private void | writeObject(ObjectOutputStream
the stream s)Hides java. Vector instance to a stream
(that is, serializes it).
|