| |
|
| java.lang.Object persistence.antlr.collections.impl.IndexedVector
IndexedVector | public class IndexedVector (Code) | | 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.
|
Constructor Summary | |
public | IndexedVector() IndexedVector constructor comment. | public | IndexedVector(int size) IndexedVector constructor comment. |
IndexedVector | public IndexedVector()(Code) | | IndexedVector constructor comment.
|
IndexedVector | public IndexedVector(int size)(Code) | | IndexedVector constructor comment.
Parameters: size - int |
elementAt | public Object elementAt(int i)(Code) | | Returns the element at the specified index.
Parameters: index - the index of the desired element exception: ArrayIndexOutOfBoundsException - If an invalidindex was given. |
removeElement | public synchronized boolean removeElement(Object key)(Code) | | remove element referred to by key NOT value; return false if not found.
|
|
|
|