public static class Trie.TrieIterator extends java.lang.Object implements java.util.Iterator<java.lang.String>, RevisionHandler
| 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
|
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