public class HashedTrie.TrieNode<TrieInfo> extends java.lang.Object implements TrieIterator<TrieInfo>
Modifier and Type | Field and Description |
---|---|
protected TrieInfo |
info |
protected java.util.HashMap<java.lang.Integer,HashedTrie.TrieNode<TrieInfo>> |
subnodes |
Modifier | Constructor and Description |
---|---|
protected |
TrieNode() |
Modifier and Type | Method and Description |
---|---|
HashedTrie.TrieNode<TrieInfo> |
descend(int code)
Move downward to the sub-trie associated with code.
|
TrieInfo |
getInfo()
Returns TrieInfo object associated with this node.
|
java.util.Iterator<java.lang.Integer> |
iterator()
Return iterator that allows to iterate through all
code points that lead to further sub-tries.
|
protected TrieInfo info
protected java.util.HashMap<java.lang.Integer,HashedTrie.TrieNode<TrieInfo>> subnodes
public HashedTrie.TrieNode<TrieInfo> descend(int code)
descend
in interface TrieIterator<TrieInfo>
descend
in interface TrieReader.TriePointer<TrieInfo>
code
- The next codepoint of the key.public TrieInfo getInfo()
getInfo
in interface TrieReader.TriePointer<TrieInfo>
public java.util.Iterator<java.lang.Integer> iterator()
iterator
in interface java.lang.Iterable<java.lang.Integer>