antlr.collections.impl
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() |
Parameters: index the index of the desired element
Throws: ArrayIndexOutOfBoundsException If an invalid index was given.