VALUE - value of the mappublic class HashedList<VALUE extends CursorValue<String>> extends Object implements Collection<VALUE>
| Constructor and Description |
|---|
HashedList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(VALUE e) |
boolean |
addAll(Collection<? extends VALUE> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
containsKey(Object key) |
VALUE |
get(int n) |
VALUE |
get(Object key) |
boolean |
isEmpty() |
nom.tam.util.HashedList.HashedListIterator |
iterator() |
Cursor<String,VALUE> |
iterator(int n) |
nom.tam.util.HashedList.HashedListIterator |
iterator(String key) |
boolean |
remove(int index)
Remove an object from the list giving the object index..
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeKey(Object key)
Remove a keyed object from the list.
|
boolean |
replaceKey(String oldKey,
String newKey)
Replace the key of a given element.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
void |
sort(Comparator<String> comp)
Sort the keys into some desired order.
|
Object[] |
toArray() |
<T> T[] |
toArray(T[] o) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic boolean add(VALUE e)
add in interface Collection<VALUE extends CursorValue<String>>public boolean addAll(Collection<? extends VALUE> c)
addAll in interface Collection<VALUE extends CursorValue<String>>public void clear()
clear in interface Collection<VALUE extends CursorValue<String>>public boolean contains(Object o)
contains in interface Collection<VALUE extends CursorValue<String>>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<VALUE extends CursorValue<String>>public boolean containsKey(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(Object key)
key - the key to search forpublic boolean isEmpty()
isEmpty in interface Collection<VALUE extends CursorValue<String>>public nom.tam.util.HashedList.HashedListIterator iterator()
iterator in interface Iterable<VALUE extends CursorValue<String>>iterator in interface Collection<VALUE extends CursorValue<String>>public Cursor<String,VALUE> iterator(int n)
n - the index to start the iteratorpublic nom.tam.util.HashedList.HashedListIterator iterator(String key)
key - the key to use as a start pointpublic boolean remove(int index)
index - the index to removepublic boolean remove(Object o)
remove in interface Collection<VALUE extends CursorValue<String>>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<VALUE extends CursorValue<String>>public boolean removeKey(Object key)
key - the key to removetrue if the key was removedpublic boolean replaceKey(String oldKey, 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(Collection<?> c)
retainAll in interface Collection<VALUE extends CursorValue<String>>public int size()
size in interface Collection<VALUE extends CursorValue<String>>public void sort(Comparator<String> comp)
comp - the comparator to use for the sortingpublic Object[] toArray()
toArray in interface Collection<VALUE extends CursorValue<String>>public <T> T[] toArray(T[] o)
toArray in interface Collection<VALUE extends CursorValue<String>>Copyright © 1996–2016 nom-tam-fits. All rights reserved.