Package com.aowagie.text.pdf.hyphenation
Class TernaryTree.Iterator
java.lang.Object
com.aowagie.text.pdf.hyphenation.TernaryTree.Iterator
- All Implemented Interfaces:
Enumeration
- Enclosing class:
TernaryTree
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
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:
nextElement
in interfaceEnumeration
-
getValue
public char getValue() -
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration
-
up
private int up()traverse upwards -
run
private int run()traverse the tree to find next key
-