public interface BidiTreeIterator<T> extends org.eclipse.emf.common.util.TreeIterator<T>, BidiIterator<T>
A bidirectional
tree iterator
.
It can be used in both directions and even alternating.
Modifier and Type | Method and Description |
---|---|
T |
next() |
T |
previous()
Returns the previous element.
|
hasPrevious
T next()
Intermixed calls to next()
and previous()
may not lead
to the very same element since the iterator does not return the parent element
when its done with its children but the next sibling of the parent.
next
in interface java.util.Iterator<T>
java.util.NoSuchElementException
- iteration has no next element.T previous()
Intermixed calls to next()
and previous()
may not lead
to the very same element since the iterator does not return the parent element
when its done with its children but the next sibling of the parent.
previous
in interface BidiIterator<T>
java.util.NoSuchElementException
- iteration has no previous element.