private class Tree.EntryIterator extends java.lang.Object implements java.util.Iterator<Tree.Entry<E>>
Modifier and Type | Field and Description |
---|---|
private java.util.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 java.util.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.
|
private Tree.Entry<E> next
private java.util.Iterator<Tree.Entry<E>> childIterator
private java.util.Iterator<Tree.Entry<E>> subTreeIterator
private EntryIterator(Tree.Entry<E> root)
public boolean hasNext()
hasNext
in interface java.util.Iterator<Tree.Entry<E>>
public Tree.Entry<E> next()
next
in interface java.util.Iterator<Tree.Entry<E>>
public void remove()
remove
in interface java.util.Iterator<Tree.Entry<E>>
java.lang.UnsupportedOperationException
- Always