|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BidirectionalIterator<K>
A bidirectional Iterator
.
This kind of iterator is essentially a ListIterator
that
does not support ListIterator.previousIndex()
and ListIterator.nextIndex()
. It is useful for those maps that can easily
provide bidirectional iteration, but provide no index.
Note that iterators returned by fastutil
classes are more
specific, and support skipping. This class serves the purpose of organising
in a cleaner way the relationships between various iterators.
Iterator
,
ListIterator
Method Summary | |
---|---|
boolean |
hasPrevious()
Returns whether there is a previous element. |
K |
previous()
Returns the previous element from the collection. |
Methods inherited from interface java.util.Iterator |
---|
hasNext, next, remove |
Method Detail |
---|
K previous()
ListIterator.previous()
boolean hasPrevious()
ListIterator.hasPrevious()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |