BidirectionalIterator<java.lang.Integer>, IntIterator, java.util.Iterator<java.lang.Integer>, ObjectBidirectionalIterator<java.lang.Integer>, ObjectIterator<java.lang.Integer>, java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer>, java.util.PrimitiveIterator.OfIntIntBigListIterator, IntListIteratorAbstractIntBidirectionalIterator, AbstractIntBigListIterator, AbstractIntListIterator, IntBigListIterators.BigListIteratorListIterator, IntBigListIterators.EmptyBigListIterator, IntBigListIterators.UnmodifiableBigListIterator, IntIterators.EmptyIterator, IntIterators.UnmodifiableBidirectionalIterator, IntIterators.UnmodifiableListIteratorpublic interface IntBidirectionalIterator extends IntIterator, ObjectBidirectionalIterator<java.lang.Integer>
BidirectionalIterator| Modifier and Type | Method | Description |
|---|---|---|
default int |
back(int n) |
Moves back for the given number of elements.
|
default java.lang.Integer |
previous() |
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
previousInt() |
Returns the previous element as a primitive type.
|
default int |
skip(int n) |
Skips the given number of elements.
|
hasPreviousforEachRemaining, next, nextIntint previousInt()
ListIterator.previous()@Deprecated default java.lang.Integer previous()
previous in interface BidirectionalIterator<java.lang.Integer>ListIterator.previous()default int back(int n)
The effect of this call is exactly the same as that of calling
previous() for n times (possibly stopping if
BidirectionalIterator.hasPrevious() becomes false).
back in interface ObjectBidirectionalIterator<java.lang.Integer>n - the number of elements to skip back.previous()default int skip(int n)
The effect of this call is exactly the same as that of calling
IntIterator.next() for n times (possibly stopping if Iterator.hasNext()
becomes false).
skip in interface IntIteratorskip in interface ObjectBidirectionalIterator<java.lang.Integer>skip in interface ObjectIterator<java.lang.Integer>n - the number of elements to skip.Iterator.next()