public static class Trie.TrieIterator extends Object implements Iterator<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 |
|---|---|
String |
getRevision()
Returns the revision string.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
String |
next()
Returns the next element in the iteration.
|
void |
remove()
ignored
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected 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()
public String next()
public String getRevision()
getRevision in interface RevisionHandlerCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.