public interface IntBidirectionalIterator extends IntIterator, ObjectBidirectionalIterator<java.lang.Integer>
ObjectBidirectionalIterator to reduce (un)boxing| 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
|
default java.lang.Integer |
previous()
Deprecated.
Please use the corresponding type-specific function instead.
|
int |
previousInt()
Returns the Previous element of the iterator.
|
default int |
skip(int amount)
Skips the Given amount of elements if possible.
|
forEachRemaining, forEachRemaining, next, nextIntboolean hasPrevious()
hasPrevious in interface ObjectBidirectionalIterator<java.lang.Integer>int previousInt()
java.util.NoSuchElementException - if the iteration has no more elements@Deprecated default java.lang.Integer previous()
This default implementation delegates to the corresponding type-specific function.
previous in interface ObjectBidirectionalIterator<java.lang.Integer>default int skip(int amount)
skip in interface IntIteratorskip in interface ObjectIterator<java.lang.Integer>amount - the amount of elements that should be skippeddefault int back(int amount)
back in interface ObjectBidirectionalIterator<java.lang.Integer>amount - the amount of elements that should be reversed