Interface Trie.Walker<T,R>

All Superinterfaces:
Trie.ResettingTransitionsReceiver, Trie.TransitionsReceiver
All Known Subinterfaces:
Trie.ValueConsumer<T>
All Known Implementing Classes:
TrieEntriesWalker
Enclosing class:
Trie<T>

protected static interface Trie.Walker<T,R> extends Trie.ResettingTransitionsReceiver
A push interface for walking over the trie. Builds upon TransitionsReceiver to be given the bytes of the path, and adds methods called on encountering content and completion. See TrieDumper for an example of how this can be used, and TrieEntriesWalker as a base class for other common usages.
  • Method Details

    • content

      void content(T content)
      Called when content is found.
    • complete

      R complete()
      Called at the completion of the walk.