VALUE - value of the mappublic class HashedList<VALUE extends CursorValue<java.lang.String>>
extends java.lang.Object
implements java.util.Collection<VALUE>
| Constructor and Description |
|---|
HashedList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(VALUE e) |
boolean |
addAll(java.util.Collection<? extends VALUE> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
containsKey(java.lang.Object key) |
VALUE |
get(int n) |
VALUE |
get(java.lang.Object key) |
boolean |
isEmpty() |
nom.tam.util.HashedList.HashedListIterator |
iterator() |
Cursor<java.lang.String,VALUE> |
iterator(int n) |
nom.tam.util.HashedList.HashedListIterator |
iterator(java.lang.String key) |
boolean |
remove(int index)
Remove an object from the list giving the object index..
|
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeKey(java.lang.Object key)
Remove a keyed object from the list.
|
boolean |
replaceKey(java.lang.String oldKey,
java.lang.String newKey)
Replace the key of a given element.
|
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
void |
sort(java.util.Comparator<java.lang.String> comp)
Sort the keys into some desired order.
|
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] o) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic boolean add(VALUE e)
add in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public boolean addAll(java.util.Collection<? extends VALUE> c)
addAll in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public void clear()
clear in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public boolean containsKey(java.lang.Object key)
key - the key to searchtrue if the key is included in the list.public VALUE get(int n)
n - the index to getpublic VALUE get(java.lang.Object key)
key - the key to search forpublic boolean isEmpty()
isEmpty in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public nom.tam.util.HashedList.HashedListIterator iterator()
iterator in interface java.lang.Iterable<VALUE extends CursorValue<java.lang.String>>iterator in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public Cursor<java.lang.String,VALUE> iterator(int n)
n - the index to start the iteratorpublic nom.tam.util.HashedList.HashedListIterator iterator(java.lang.String key)
key - the key to use as a start pointpublic boolean remove(int index)
index - the index to removepublic boolean remove(java.lang.Object o)
remove in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public boolean removeKey(java.lang.Object key)
key - the key to removetrue if the key was removedpublic boolean replaceKey(java.lang.String oldKey,
java.lang.String newKey)
oldKey - The previous key. This key must be present in the hash.newKey - The new key. This key must not be present in the hash.public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public int size()
size in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public void sort(java.util.Comparator<java.lang.String> comp)
comp - the comparator to use for the sortingpublic java.lang.Object[] toArray()
toArray in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public <T> T[] toArray(T[] o)
toArray in interface java.util.Collection<VALUE extends CursorValue<java.lang.String>>public java.lang.String toString()
toString in class java.lang.Object