public static class Trie.TrieIterator extends java.lang.Object implements java.util.Iterator<java.lang.String>, RevisionHandler
| Modifier and Type | Field and Description |
|---|---|
protected Trie.TrieNode |
m_CurrentLeaf
the current leaf node
|
protected Trie.TrieNode |
m_LastLeaf
the last leaf for this root node
|
protected Trie.TrieNode |
m_Root
the node to use as root
|
| Constructor and Description |
|---|
TrieIterator(Trie.TrieNode node)
initializes the iterator
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRevision()
Returns the revision string.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
java.lang.String |
next()
Returns the next element in the iteration.
|
void |
remove()
ignored
|
protected Trie.TrieNode m_Root
protected Trie.TrieNode m_LastLeaf
protected Trie.TrieNode m_CurrentLeaf
public TrieIterator(Trie.TrieNode node)
node - the node to use as rootpublic boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.String>public java.lang.String next()
next in interface java.util.Iterator<java.lang.String>public void remove()
remove in interface java.util.Iterator<java.lang.String>public java.lang.String getRevision()
getRevision in interface RevisionHandler