Interface Cursor<K,V>
-
public interface Cursor<K,V>
ACursor
can be used to traverse aTrie
, visit each node step by step and makeCursor.Decision
s on each step how to continue with traversing theTrie
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Cursor.Decision
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cursor.Decision
select(java.util.Map.Entry<? extends K,? extends V> entry)
Called for eachMap.Entry
in theTrie
.
-
-
-
Method Detail
-
select
Cursor.Decision select(java.util.Map.Entry<? extends K,? extends V> entry)
Called for eachMap.Entry
in theTrie
. ReturnCursor.Decision.EXIT
to finish theTrie
operation,Cursor.Decision.CONTINUE
to go to the nextMap.Entry
,Cursor.Decision.REMOVE
to remove theMap.Entry
and continue iterating orCursor.Decision.REMOVE_AND_EXIT
to remove theMap.Entry
and stop iterating. Note: Not all operations supportCursor.Decision.REMOVE
.
-
-