private abstract class BinaryTree.BinaryTreeIterator extends Object implements Iterator
Modifier and Type | Field and Description |
---|---|
private int |
_expected_modifications |
protected BinaryTree.Node |
_last_returned_node |
private BinaryTree.Node |
_next_node |
private int |
_type |
Constructor and Description |
---|
BinaryTree.BinaryTreeIterator(int type)
Constructor
|
private int _expected_modifications
protected BinaryTree.Node _last_returned_node
private BinaryTree.Node _next_node
private int _type
BinaryTree.BinaryTreeIterator(int type)
type
- protected abstract Object doGetNext()
public final boolean hasNext()
public final Object next() throws NoSuchElementException, ConcurrentModificationException
next
in interface Iterator
NoSuchElementException
- if iteration has no more
elements.ConcurrentModificationException
- if the
BinaryTree is
modified behind
the iterator's
backpublic final void remove() throws IllegalStateException, ConcurrentModificationException
remove
in interface Iterator
IllegalStateException
- if the next method has not
yet been called, or the
remove method has already
been called after the last
call to the next method.ConcurrentModificationException
- if the
BinaryTree is
modified behind
the iterator's
backCopyright © 2015 Open Microscopy Environment