Package antlr.collections.impl
Class Vector
- java.lang.Object
-
- antlr.collections.impl.Vector
-
-
Field Summary
Fields Modifier and Type Field Description protected Object[]dataprotected intlastElement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendElement(Object o)intcapacity()Returns the current capacity of the vector.Objectclone()ObjectelementAt(int i)Returns the element at the specified index.Enumerationelements()voidensureCapacity(int minIndex)booleanremoveElement(Object o)voidsetElementAt(Object obj, int i)intsize()
-
-
-
Field Detail
-
data
protected Object[] data
-
lastElement
protected int lastElement
-
-
Method Detail
-
appendElement
public void appendElement(Object o)
-
capacity
public int capacity()
Returns the current capacity of the vector.
-
elementAt
public Object elementAt(int i)
Returns the element at the specified index.- Parameters:
index- the index of the desired element- 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()
-
-