|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.util.TreeIterator<T,U>
public abstract class TreeIterator<T,U>
Iterator for tree-like structures.
Nested Class Summary | |
---|---|
static class |
TreeIterator.Order
|
Constructor Summary | |
---|---|
TreeIterator(U root,
TreeIterator.Order order)
Construct a tree iterator over a nested iterator structure. |
Method Summary | |
---|---|
protected abstract java.util.Iterator<U> |
getChildren(U obj)
|
protected abstract java.util.Iterator<T> |
getIterator(U obj)
|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeIterator(U root, TreeIterator.Order order)
root
- Iterator through root-level elements.order
- Order of iteration over children.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
protected abstract java.util.Iterator<U> getChildren(U obj)
protected abstract java.util.Iterator<T> getIterator(U obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |