@Beta public final class TrieNodeBuilder extends Object
TrieNode
tree
The tree is built "in depth"; each character of a string will create a new builder unless there is already a builder for that character.
When build()
is called, the whole tree is built from the leaves
up to the root.
Constructor and Description |
---|
TrieNodeBuilder() |
public TrieNodeBuilder addWord(String word)
public TrieNode build()