Lines Matching defs:Vector

29  * The {@code Vector} class implements a growable array of
32 * {@code Vector} can grow or shrink as needed to accommodate
33 * adding and removing items after the {@code Vector} has been created.
69 * implementations, {@code Vector} is synchronized. If a thread-safe
71 * ArrayList} in place of {@code Vector}.
79 public class Vector<E>
88 * <p>Any array elements following the last element in the Vector are null.
95 * The number of valid components in this {@code Vector} object.
126 public Vector(int initialCapacity, int capacityIncrement) {
143 public Vector(int initialCapacity) {
152 public Vector() {
166 public Vector(Collection<? extends E> c) {
343 synchronized (Vector.this) {
348 throw new NoSuchElementException("Vector Enumeration");
578 * is appended to the Vector.)
663 * to the original internal data array of this {@code Vector} object.
670 Vector<E> v = (Vector<E>) super.clone();
681 * Returns an array containing all of the elements in this Vector
691 * Returns an array containing all of the elements in this Vector in the
693 * specified array. If the Vector fits in the specified array, it is
695 * type of the specified array and the size of this Vector.
697 * <p>If the Vector fits in the specified array with room to spare
698 * (i.e., the array has more elements than the Vector),
700 * Vector is set to null. (This is useful in determining the length
701 * of the Vector <em>only</em> if the caller knows that the Vector
704 * @param a the array into which the elements of the Vector are to
707 * @return an array containing the elements of the Vector
709 * of the runtime type of every element in this Vector
734 * Returns the element at the specified position in this Vector.
750 * Replaces the element at the specified position in this Vector with the
770 * Appends the specified element to the end of this Vector.
772 * @param e element to be appended to this Vector
784 * Removes the first occurrence of the specified element in this Vector
785 * If the Vector does not contain the element, it is unchanged. More
790 * @param o element to be removed from this Vector, if present
791 * @return true if the Vector contained the specified element
799 * Inserts the specified element at the specified position in this Vector.
814 * Removes the element at the specified position in this Vector.
816 * indices). Returns the element that was removed from the Vector.
840 * Removes all of the elements from this Vector. The Vector will
852 * Returns true if this Vector contains all of the elements in the
856 * in this Vector
857 * @return true if this Vector contains all of the elements in the
867 * this Vector, in the order that they are returned by the specified
871 * specified Collection is this Vector, and this Vector is nonempty.)
873 * @param c elements to be inserted into this Vector
874 * @return {@code true} if this Vector changed as a result of the call
889 * Removes from this Vector all of its elements that are contained in the
892 * @param c a collection of elements to be removed from the Vector
893 * @return true if this Vector changed as a result of the call
910 * Retains only the elements in this Vector that are contained in the
911 * specified Collection. In other words, removes from this Vector all
914 * @param c a collection of elements to be retained in this Vector
916 * @return true if this Vector changed as a result of the call
934 * Vector at the specified position. Shifts the element currently at
936 * (increases their indices). The new elements will appear in the Vector
942 * @param c elements to be inserted into this Vector
943 * @return {@code true} if this Vector changed as a result of the call
969 * Compares the specified Object with this Vector for equality. Returns
977 * @param o the Object to be compared for equality with this Vector
978 * @return true if the specified Object is equal to this Vector
985 * Returns the hash code value for this Vector.
992 * Returns a string representation of this Vector, containing
1058 * Save the state of the {@code Vector} instance to a stream (that
1132 synchronized (Vector.this) {
1145 synchronized (Vector.this) {
1147 Vector.this.remove(lastRet);
1182 synchronized (Vector.this) {
1195 synchronized (Vector.this) {
1197 Vector.this.set(lastRet, e);
1203 synchronized (Vector.this) {
1205 Vector.this.add(i, e);