Class TernaryTree.Iterator
java.lang.Object
com.aowagie.text.pdf.hyphenation.TernaryTree.Iterator
- All Implemented Interfaces:
Enumeration
- Enclosing class:
TernaryTree
-
Field Details
-
cur
private int curcurrent node index -
curkey
current key -
ns
Node stack -
ks
key stack implemented with a StringBuffer
-
-
Constructor Details
-
Iterator
public Iterator()
-
-
Method Details
-
rewind
private void rewind() -
nextElement
- Specified by:
nextElementin interfaceEnumeration
-
getValue
public char getValue() -
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration
-
up
private int up()traverse upwards -
run
private int run()traverse the tree to find next key
-