Class TernaryTree.Iterator

java.lang.Object
org.apache.lucene.analysis.compound.hyphenation.TernaryTree.Iterator
All Implemented Interfaces:
Enumeration<String>
Enclosing class:
TernaryTree

public class TernaryTree.Iterator extends Object implements Enumeration<String>
Enumeration over TST keys
  • Field Details

  • Constructor Details

    • Iterator

      public Iterator()
  • Method Details

    • rewind

      public void rewind()
    • nextElement

      public String nextElement()
      Specified by:
      nextElement in interface Enumeration<String>
    • getValue

      public char getValue()
    • hasMoreElements

      public boolean hasMoreElements()
      Specified by:
      hasMoreElements in interface Enumeration<String>
    • up

      private int up()
      traverse upwards
    • run

      private int run()
      traverse the tree to find next key