public static class Trie.TrieIterator extends Object implements Iterator<String>, RevisionHandler
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
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public TrieIterator(Trie.TrieNode node)
node
- the node to use as rootpublic boolean hasNext()
public String next()
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.