BidirectionalIterator<java.lang.Long>, BigListIterator<java.lang.Long>, java.util.Iterator<java.lang.Long>, LongBidirectionalIterator, LongIterator, ObjectBidirectionalIterator<java.lang.Long>, ObjectIterator<java.lang.Long>, java.util.PrimitiveIterator<java.lang.Long,java.util.function.LongConsumer>, java.util.PrimitiveIterator.OfLongAbstractLongBigListIterator, LongBigListIterators.BigListIteratorListIterator, LongBigListIterators.EmptyBigListIterator, LongBigListIterators.UnmodifiableBigListIteratorpublic interface LongBigListIterator extends LongBidirectionalIterator, BigListIterator<java.lang.Long>
BigListIterator.BigListIterator| Modifier and Type | Method | Description |
|---|---|---|
default void |
add(long k) |
Inserts the specified element into the list (optional operation).
|
default void |
add(java.lang.Long k) |
Deprecated.
Please use the corresponding type-specific method instead.
|
default long |
back(long n) |
Moves back for the given number of elements.
|
default void |
set(long k) |
Replaces the last element returned by
next()
or previous() with the specified element
(optional operation). |
default void |
set(java.lang.Long k) |
Deprecated.
Please use the corresponding type-specific method instead.
|
default int |
skip(int n) |
Skips the given number of elements.
|
default long |
skip(long n) |
Skips the given number of elements.
|
hasPreviousnextIndex, previousIndexback, previous, previousLongforEachRemaining, next, nextLongdefault void set(long k)
next()
or previous() with the specified element
(optional operation).ListIterator.set(Object)default void add(long k)
ListIterator.add(Object)@Deprecated default void set(java.lang.Long k)
LongIterator.next() or LongBidirectionalIterator.previous()
with the specified element (optional operation).set in interface BigListIterator<java.lang.Long>k - an element.ListIterator.set(Object)@Deprecated default void add(java.lang.Long k)
add in interface BigListIterator<java.lang.Long>k - an element.ListIterator.add(Object)default long skip(long n)
The effect of this call is exactly the same as that of calling
next() for n times (possibly stopping
if Iterator.hasNext() becomes false).
n - the number of elements to skip.Iterator.next()default long back(long 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).
n - the number of elements to skip back.BidirectionalIterator.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 LongBidirectionalIteratorskip 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()