public class Trie
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Trie.Node
Trie Node
|
| Constructor and Description |
|---|
Trie()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String value)
Adds an input value to this trie
|
Trie.Node |
getRoot()
Returns this trie's root node
|
public void add(java.lang.String value)
Before the value is added, a terminating character (U+0001) is appended to the input string
value - value to add to this triepublic Trie.Node getRoot()