|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.Trie.TrieIterator
public static class Trie.TrieIterator
Represents an iterator over a trie
| Constructor Summary | |
|---|---|
Trie.TrieIterator(Trie.TrieNode node)
initializes the iterator |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Trie.TrieIterator(Trie.TrieNode node)
node - the node to use as root| Method Detail |
|---|
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||