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.Enumeration
an iterator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
TernaryTree.Iterator.Item
-
Constructor Summary
Constructors Constructor Description Iterator()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getValue()
boolean
hasMoreElements()
java.lang.Object
nextElement()
void
rewind()
rewind iteratorprivate int
run()
traverse the tree to find next keyprivate int
up()
traverse upwards
-
-
-
Method Detail
-
rewind
public void rewind()
rewind iterator
-
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interfacejava.util.Enumeration
- Returns:
- next element
-
getValue
public char getValue()
- Returns:
- value
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in 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
-
-