Package net.sf.basedb.util
Class Tree.EntryIterator
java.lang.Object
net.sf.basedb.util.Tree.EntryIterator
- All Implemented Interfaces:
Iterator<Tree.Entry<E>>
An iterator that return entries for each node.
-
Field Summary
Modifier and TypeFieldDescriptionprivate Iterator<Tree.Entry<E>>
An iterator over the children of the root entry.private Tree.Entry<E>
The next element to return.private Iterator<Tree.Entry<E>>
An iterator over the subtree for each child of the root entry. -
Constructor Summary
ModifierConstructorDescriptionprivate
EntryIterator
(Tree.Entry<E> root) Create an iterator that starts at the specified entry. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
next
The next element to return. -
childIterator
An iterator over the children of the root entry. -
subTreeIterator
An iterator over the subtree for each child of the root entry.
-
-
Constructor Details
-
EntryIterator
Create an iterator that starts at the specified entry. It will return the specified entry as it's first element. Then it will iterate over the child entries recursively.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<Tree.Entry<E>>
-
next
- Specified by:
next
in interfaceIterator<Tree.Entry<E>>
-
remove
public void remove()Not supported.- Specified by:
remove
in interfaceIterator<Tree.Entry<E>>
- Throws:
UnsupportedOperationException
- Always
-