T - the type of elements maintained by this Collectionpublic interface ObjectBidirectionalIterator<T> extends ObjectIterator<T>
ListIterator without the index functions.
Allowing to have a simple Bidirectional Iterator without having to keep track of the Iteration index.| Modifier and Type | Method and Description |
|---|---|
default int |
back(int amount)
Reverses the Given amount of elements if possible.
|
boolean |
hasPrevious()
Returns true if the Iterator has a Previous element
|
T |
previous()
Returns the Previous element of the iterator.
|
skipboolean hasPrevious()
T previous()
java.util.NoSuchElementException - if the iteration has no more elementsdefault int back(int amount)
amount - the amount of elements that should be reversed