K - Key TypeV - Key Valuepublic static interface Trie.Cursor<K,V>
Trie. A Trie selects items by
closeness and passes the items to the Cursor. You can then
decide what to do with the key-value pair and the return value
from select(java.util.Map.Entry) tells the Trie
what to do next.
Cursor returns status/selection status might be:
| Return Value | Status |
| EXIT | Finish the Trie operation |
| CONTINUE | Look at the next element in the traversal |
| REMOVE_AND_EXIT | Remove the entry and stop iterating |
| REMOVE | Remove the entry and continue iterating |
Trie.select(Object, edu.wisc.ssec.mcidasv.util.trie.Trie.Cursor)
does not support REMOVE.| Modifier and Type | Interface and Description |
|---|---|
static class |
Trie.Cursor.SelectStatus
The mode during selection.
|
| Modifier and Type | Method and Description |
|---|---|
Trie.Cursor.SelectStatus |
select(Map.Entry<? extends K,? extends V> entry)
Notification that the Trie is currently looking at the given entry.
|
Trie.Cursor.SelectStatus select(Map.Entry<? extends K,? extends V> entry)
EXIT to finish the Trie operation,
CONTINUE to look at the next entry, REMOVE
to remove the entry and continue iterating, or
REMOVE_AND_EXIT to remove the entry and stop iterating.
Not all operations support REMOVE.