Methods Summary |
---|
public synchronized void | appendElement(java.lang.Object key, java.lang.Object value)
elements.appendElement(value);
index.put(key, value);
|
public java.lang.Object | elementAt(int i)Returns the element at the specified index.
return elements.elementAt(i);
|
public java.util.Enumeration | elements()
return elements.elements();
|
public java.lang.Object | getElement(java.lang.Object key)
Object o = index.get(key);
return o;
|
public synchronized boolean | removeElement(java.lang.Object key)remove element referred to by key NOT value; return false if not found.
Object value = index.get(key);
if (value == null) {
return false;
}
index.remove(key);
elements.removeElement(value);
return false;
|
public int | size()
return elements.size();
|