Package weka.core

Class Trie.TrieIterator

    • Constructor Detail

      • TrieIterator

        public TrieIterator​(Trie.TrieNode node)
        initializes the iterator
        Parameters:
        node - the node to use as root
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if the iteration has more elements.
        Specified by:
        hasNext in interface Iterator<String>
        Returns:
        true if there is at least one more element
      • next

        public String next()
        Returns the next element in the iteration.
        Specified by:
        next in interface Iterator<String>
        Returns:
        the next element