java.util
Class Vector

java.lang.Object
  |
  +--java.util.Vector

public class Vector
extends Object

A dynamic array.


Field Summary
protected  int capacityIncrement
           
protected  int elementCount
           
protected  Object[] elementData
           
 
Constructor Summary
Vector()
           
Vector(int initialCapacity)
           
Vector(int initialCapacity, int capacityIncrement)
           
 
Method Summary
 void addElement(Object aObj)
           
 int capacity()
           
 void clear()
           
 Object elementAt(int aIndex)
           
 void ensureCapacity(int minCapacity)
           
 boolean equals(Object aObj)
           
 int indexOf(Object aObj)
           
 int indexOf(Object aObj, int aIndex)
           
 void insertElementAt(Object aObj, int aIndex)
           
 boolean isEmpty()
           
 void removeAllElements()
           
 boolean removeElement(Object aObj)
           
 void removeElementAt(int aIndex)
           
 void setElementAt(Object aObj, int aIndex)
           
 void setSize(int aSize)
           
 int size()
           
 Object[] toArray()
           
 void trimToSize()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Field Detail

elementData

protected Object[] elementData

capacityIncrement

protected int capacityIncrement

elementCount

protected int elementCount
Constructor Detail

Vector

public Vector(int initialCapacity,
              int capacityIncrement)

Vector

public Vector(int initialCapacity)

Vector

public Vector()
Method Detail

addElement

public void addElement(Object aObj)

capacity

public int capacity()

clear

public void clear()

elementAt

public Object elementAt(int aIndex)

ensureCapacity

public void ensureCapacity(int minCapacity)

equals

public boolean equals(Object aObj)
Overrides:
equals in class Object

indexOf

public int indexOf(Object aObj)

indexOf

public int indexOf(Object aObj,
                   int aIndex)

insertElementAt

public void insertElementAt(Object aObj,
                            int aIndex)

isEmpty

public boolean isEmpty()

removeAllElements

public void removeAllElements()

removeElement

public boolean removeElement(Object aObj)

removeElementAt

public void removeElementAt(int aIndex)

setElementAt

public void setElementAt(Object aObj,
                         int aIndex)

setSize

public void setSize(int aSize)

size

public int size()

toArray

public Object[] toArray()

trimToSize

public void trimToSize()