|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TwoWayIterator<T>
This interface defines a bi-directional iterator over a collection of objects.
| Method Summary | |
|---|---|
boolean |
hasPrev()
Return true if there is a previous element in the current
iteration state and false otherwise. |
T |
prev()
Returns the previous element in this iteration. |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Method Detail |
|---|
boolean hasPrev()
Return true if there is a previous element in the current
iteration state and false otherwise. After the iterator
has been initialized, the value of hasPrev will always be
false.
T prev()
Returns the previous element in this iteration.
NoSuchElementException - if there is no previous element (e.g. at
the beginning of the iteration).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||