antlr.collections.impl
Class Vector

java.lang.Object
  |
  +--antlr.collections.impl.Vector
All Implemented Interfaces:
Cloneable

public class Vector
extends Object
implements Cloneable


Field Summary
protected  Object[] data
           
protected  int lastElement
           
 
Constructor Summary
Vector()
           
Vector(int size)
           
 
Method Summary
 void appendElement(Object o)
           
 int capacity()
          Returns the current capacity of the vector.
 Object clone()
           
 Object elementAt(int i)
          Returns the element at the specified index.
 Enumeration elements()
           
 void ensureCapacity(int minIndex)
           
 boolean removeElement(Object o)
           
 void setElementAt(Object obj, int i)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected Object[] data

lastElement

protected int lastElement
Constructor Detail

Vector

public Vector()

Vector

public Vector(int size)
Method Detail

appendElement

public void appendElement(Object o)

capacity

public int capacity()
Returns the current capacity of the vector.


clone

public Object clone()
Overrides:
clone in class Object

elementAt

public Object elementAt(int i)
Returns the element at the specified index.

Throws:
ArrayIndexOutOfBoundsException - If an invalid index was given.

elements

public Enumeration elements()

ensureCapacity

public void ensureCapacity(int minIndex)

removeElement

public boolean removeElement(Object o)

setElementAt

public void setElementAt(Object obj,
                         int i)

size

public int size()


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.