|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BidiIterator<T>
A bidirectional iterator. It can be used in both directions and even alternating.
It is similar to a ListIterator
besides that it does not
support the index-based operations previousIndex
and
nextIndex
or the mutating operations
set
and
add
.
Method Summary | |
---|---|
boolean |
hasPrevious()
Returns true if this bidi iterator has more elements when traversing in the reverse direction. |
T |
previous()
Returns the previous element. |
Methods inherited from interface java.util.Iterator |
---|
hasNext, next, remove |
Method Detail |
---|
boolean hasPrevious()
T previous()
java.util.NoSuchElementException
- if the iteration has no previous
element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |