public class HashedTrie<TrieInfo> extends java.lang.Object implements TrieReader<TrieInfo>, TrieConstructor<TrieInfo>
| Modifier and Type | Class and Description | 
|---|---|
| class  | HashedTrie.TrieNode<TrieInfo>Node of a hashed trie that represents a sub-trie. | 
TrieReader.TriePointer<TrieInfo>| Constructor and Description | 
|---|
| HashedTrie()Create a hashed trie. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getNumberOfEntries()Return number of info objects stored into this trie. | 
| int | getNumberOfNodes()Return number of nodes within this trie. | 
| HashedTrie.TrieNode<TrieInfo> | getRoot()Return root node of this trie which is always non-null. | 
| void | insert(java.lang.String word,
      TrieInfo info)Insert the info object into this trie using word as key. | 
public HashedTrie.TrieNode<TrieInfo> getRoot()
getRoot in interface TrieReader<TrieInfo>public void insert(java.lang.String word,
                   TrieInfo info)
insert in interface TrieConstructor<TrieInfo>word - Key string which is interpreted as a sequence
             of code points.info - Object to be stored at the given key, must not
             be null.public int getNumberOfEntries()
getNumberOfEntries in interface TrieReader<TrieInfo>public int getNumberOfNodes()
getNumberOfNodes in interface TrieReader<TrieInfo>