Interface Cursor<K,V>
-
public interface Cursor<K,V>ACursorcan be used to traverse aTrie, visit each node step by step and makeCursor.Decisions on each step how to continue with traversing theTrie.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCursor.Decision
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cursor.Decisionselect(java.util.Map.Entry<? extends K,? extends V> entry)Called for eachMap.Entryin theTrie.
-
-
-
Method Detail
-
select
Cursor.Decision select(java.util.Map.Entry<? extends K,? extends V> entry)
Called for eachMap.Entryin theTrie. ReturnCursor.Decision.EXITto finish theTrieoperation,Cursor.Decision.CONTINUEto go to the nextMap.Entry,Cursor.Decision.REMOVEto remove theMap.Entryand continue iterating orCursor.Decision.REMOVE_AND_EXITto remove theMap.Entryand stop iterating. Note: Not all operations supportCursor.Decision.REMOVE.
-
-