|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.id.pbw.hyfo.hyph.BigTernaryTree.TernaryIterator
public class BigTernaryTree.TernaryIterator
Defines an in-order Iterator
over the tree. The iterator
uses a server thread which walks the tree, feeding TreeElement
s back through a blocking queue, which the iterator
reads to obtain status anc content from the tree wlaker.
Field Summary | |
---|---|
static boolean |
FAIR
User fair queueing. |
static int |
Q_CAPACITY
The initial capacity of the |
Constructor Summary | |
---|---|
BigTernaryTree.TernaryIterator()
Constructs a new in-order iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Does the iterator have anotehr element? |
TreeElement |
next()
Gets the next element from the itertor, or null if the iterator is exhausted. |
void |
remove()
This operation is unsupported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int Q_CAPACITY
public static final boolean FAIR
Constructor Detail |
---|
public BigTernaryTree.TernaryIterator()
Method Detail |
---|
public TreeElement next()
next
in interface Iterator<TreeElement>
public boolean hasNext()
hasNext
in interface Iterator<TreeElement>
true
if the iterator has another element.public void remove()
remove
in interface Iterator<TreeElement>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |