Package com.aowagie.text.pdf.hyphenation
Class TernaryTree.Iterator
- java.lang.Object
-
- com.aowagie.text.pdf.hyphenation.TernaryTree.Iterator
-
- All Implemented Interfaces:
java.util.Enumeration
- Enclosing class:
- TernaryTree
private class TernaryTree.Iterator extends java.lang.Object implements java.util.Enumeration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classTernaryTree.Iterator.Item
-
Constructor Summary
Constructors Constructor Description Iterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetValue()booleanhasMoreElements()java.lang.ObjectnextElement()private voidrewind()private intrun()traverse the tree to find next keyprivate intup()traverse upwards
-
-
-
Method Detail
-
rewind
private void rewind()
-
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElementin interfacejava.util.Enumeration
-
getValue
public char getValue()
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElementsin interfacejava.util.Enumeration
-
up
private int up()
traverse upwards
-
run
private int run()
traverse the tree to find next key
-
-