Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.util.Vector

Availability: JDK 1.0

public class Vector extends Object implements Cloneable, Serializable {
   // Public Constructors
      public Vector(int initialCapacity, int capacityIncrement);
      public Vector(int initialCapacity);
      public Vector();
   // Protected Instance Variables
      protected int capacityIncrement;
      protected int elementCount;
      protected Object[] elementData;
   // Public Instance Methods
      public final synchronized void addElement(Object obj);
      public final int capacity();
      public synchronized Object clone();  // Overrides Object.clone()
      public final boolean contains(Object elem);
      public final synchronized void copyInto(Object[] anArray);
      public final synchronized Object elementAt(int index);
      public final synchronized Enumeration elements();
      public final synchronized void ensureCapacity(int minCapacity);
      public final synchronized Object firstElement();
      public final int indexOf(Object elem);
      public final synchronized int indexOf(Object elem, int index);
      public final synchronized void insertElementAt(Object obj, int index);
      public final boolean isEmpty();
      public final synchronized Object lastElement();
      public final int lastIndexOf(Object elem);
      public final synchronized int lastIndexOf(Object elem, int index);
      public final synchronized void removeAllElements();
      public final synchronized boolean removeElement(Object obj);
      public final synchronized void removeElementAt(int index);
      public final synchronized void setElementAt(Object obj, int index);
      public final synchronized void setSize(int newSize);
      public final int size();
      public final synchronized String toString();  // Overrides Object.toString()
      public final synchronized void trimToSize();
}
Extended By:
Stack.

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.