Class TernaryTree.Iterator

java.lang.Object
com.aowagie.text.pdf.hyphenation.TernaryTree.Iterator
All Implemented Interfaces:
Enumeration
Enclosing class:
TernaryTree

private class TernaryTree.Iterator extends Object implements Enumeration
  • Field Details

    • cur

      private int cur
      current node index
    • curkey

      private String curkey
      current key
    • ns

      private final Stack ns
      Node stack
    • ks

      private final StringBuffer ks
      key stack implemented with a StringBuffer
  • Constructor Details

    • Iterator

      public Iterator()
  • Method Details

    • rewind

      private void rewind()
    • nextElement

      public Object nextElement()
      Specified by:
      nextElement in interface Enumeration
    • getValue

      public char getValue()
    • hasMoreElements

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

      private int up()
      traverse upwards
    • run

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