Package org.apache.fop.hyphenation
Class TernaryTree.Iterator
- java.lang.Object
-
- org.apache.fop.hyphenation.TernaryTree.Iterator
-
- All Implemented Interfaces:
java.util.Enumeration
- Enclosing class:
- TernaryTree
public class TernaryTree.Iterator extends java.lang.Object implements java.util.Enumerationan iterator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classTernaryTree.Iterator.Item
-
Constructor Summary
Constructors Constructor Description Iterator()default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetValue()booleanhasMoreElements()java.lang.ObjectnextElement()voidrewind()rewind iteratorprivate intrun()traverse the tree to find next keyprivate intup()traverse upwards
-
-
-
Method Detail
-
rewind
public void rewind()
rewind iterator
-
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElementin interfacejava.util.Enumeration- Returns:
- next element
-
getValue
public char getValue()
- Returns:
- value
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElementsin interfacejava.util.Enumeration- Returns:
- true if more elements
-
up
private int up()
traverse upwards
-
run
private int run()
traverse the tree to find next key
-
-