private class Tree.EntryIterator extends Object implements Iterator<Tree.Entry<E>>
Modifier and Type | Field and Description |
---|---|
private Iterator<Tree.Entry<E>> |
childIterator
An iterator over the children of the root entry.
|
private Tree.Entry<E> |
next
The next element to return.
|
private Iterator<Tree.Entry<E>> |
subTreeIterator
An iterator over the subtree for each child of the root entry.
|
Modifier | Constructor and Description |
---|---|
private |
EntryIterator(Tree.Entry<E> root)
Create an iterator that starts at the specified entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Tree.Entry<E> |
next() |
void |
remove()
Not supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private Tree.Entry<E> next
private Iterator<Tree.Entry<E>> childIterator
private Iterator<Tree.Entry<E>> subTreeIterator
private EntryIterator(Tree.Entry<E> root)
public boolean hasNext()
hasNext
in interface Iterator<Tree.Entry<E>>
public Tree.Entry<E> next()
next
in interface Iterator<Tree.Entry<E>>
public void remove()
remove
in interface Iterator<Tree.Entry<E>>
UnsupportedOperationException
- Always