程序包 weka.core

类 Trie.TrieIterator

java.lang.Object
weka.core.Trie.TrieIterator
所有已实现的接口:
Iterator<String>, RevisionHandler
封闭类:
Trie

public static class Trie.TrieIterator extends Object implements Iterator<String>, RevisionHandler
Represents an iterator over a trie
版本:
$Revision: 1.2 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
  • 构造器详细资料

    • TrieIterator

      public TrieIterator(Trie.TrieNode node)
      initializes the iterator
      参数:
      node - the node to use as root
  • 方法详细资料

    • hasNext

      public boolean hasNext()
      Returns true if the iteration has more elements.
      指定者:
      hasNext 在接口中 Iterator<String>
      返回:
      true if there is at least one more element
    • next

      public String next()
      Returns the next element in the iteration.
      指定者:
      next 在接口中 Iterator<String>
      返回:
      the next element
    • remove

      public void remove()
      ignored
      指定者:
      remove 在接口中 Iterator<String>
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision