|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.collections.impl.IndexedVector
Untamed: A simple indexed vector: a normal vector except that you must specify a key when adding an element. This allows fast lookup and allows the order of specification to be preserved.
Field Summary | |
protected Vector |
elements
|
protected Hashtable |
index
|
Constructor Summary | |
IndexedVector()
Enabled: IndexedVector constructor comment. |
|
IndexedVector(int size)
Enabled: IndexedVector constructor comment. |
Method Summary | |
void |
appendElement(Object key,
Object value)
Enabled: |
Object |
elementAt(int i)
Enabled: Returns the element at the specified index. |
Enumeration |
elements()
Enabled: |
Object |
getElement(Object key)
Enabled: |
boolean |
removeElement(Object key)
Enabled: remove element referred to by key NOT value; return false if not found. |
int |
size()
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Vector elements
protected Hashtable index
Constructor Detail |
public IndexedVector()
public IndexedVector(int size)
size
- intMethod Detail |
public void appendElement(Object key, Object value)
public Object elementAt(int i)
public Enumeration elements()
public Object getElement(Object key)
public boolean removeElement(Object key)
public int size()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |