Methods Summary |
---|
public boolean | add(java.lang.Object value)Appends the specified element to the end of this list
int index = elements.size();
elements.add(value);
valueKeyMap.put(value, new Integer(index));
return true;
|
public java.lang.Object | get(int index)
return elements.get(index);
|
public int | getIndex(java.lang.Object o)
Integer i = ((Integer)valueKeyMap.get(o));
if (i == null)
return -1;
return i.intValue();
|
public java.util.Iterator | iterator()
return elements.iterator();
|
public int | size()
return elements.size();
|