Package weka.core
Class Trie.TrieIterator
java.lang.Object
weka.core.Trie.TrieIterator
- All Implemented Interfaces:
Iterator<String>
,RevisionHandler
- Enclosing class:
- Trie
Represents an iterator over a trie
- Version:
- $Revision: 10203 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Constructor Details
-
TrieIterator
initializes the iterator- Parameters:
node
- the node to use as root
-
-
Method Details
-
hasNext
public boolean hasNext()Returns true if the iteration has more elements. -
next
Returns the next element in the iteration. -
remove
public void remove()ignored -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-