BidirectionalIterator<java.lang.Long>, java.util.Iterator<java.lang.Long>, LongIterator, ObjectBidirectionalIterator<java.lang.Long>, ObjectIterator<java.lang.Long>, java.util.PrimitiveIterator<java.lang.Long,java.util.function.LongConsumer>, java.util.PrimitiveIterator.OfLongLongBigListIterator, LongListIteratorAbstractLongBidirectionalIterator, AbstractLongBigListIterator, AbstractLongListIterator, LongBigListIterators.BigListIteratorListIterator, LongBigListIterators.EmptyBigListIterator, LongBigListIterators.UnmodifiableBigListIterator, LongIterators.EmptyIterator, LongIterators.UnmodifiableBidirectionalIterator, LongIterators.UnmodifiableListIteratorpublic interface LongBidirectionalIterator extends LongIterator, ObjectBidirectionalIterator<java.lang.Long>
BidirectionalIterator| Modifier and Type | Method | Description |
|---|---|---|
default int |
back(int n) |
Moves back for the given number of elements.
|
default java.lang.Long |
previous() |
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
previousLong() |
Returns the previous element as a primitive type.
|
default int |
skip(int n) |
Skips the given number of elements.
|
hasPreviousforEachRemaining, next, nextLonglong previousLong()
ListIterator.previous()@Deprecated default java.lang.Long previous()
previous in interface BidirectionalIterator<java.lang.Long>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.Long>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
LongIterator.next() for n times (possibly stopping if Iterator.hasNext()
becomes false).
skip in interface LongIteratorskip in interface ObjectBidirectionalIterator<java.lang.Long>skip in interface ObjectIterator<java.lang.Long>n - the number of elements to skip.Iterator.next()