K - index key typeV - index value typepublic class WatchedAutoIndex<K,V> extends AutoIndex<K,V> implements WatchedIndex<K,V>
| Constructor and Description |
|---|
WatchedAutoIndex(Function<V,K> indexer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V value)
Adds the given value to the index.
|
ListenerHandle<WatchedIndexListener<K,V>> |
addListener(WatchedIndexListener<K,V> listener) |
boolean |
remove(V value)
Removes the given value from the index.
|
find, forEachValue, getKey, getKeysclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfind, forEachValue, getKeyspublic boolean add(V value)
AutoIndexpublic boolean remove(V value)
AutoIndexpublic ListenerHandle<WatchedIndexListener<K,V>> addListener(WatchedIndexListener<K,V> listener)
addListener in interface WatchedIndex<K,V>