BidirectionalIterator<java.lang.Integer>, BigListIterator<java.lang.Integer>, IntBidirectionalIterator, 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.OfIntAbstractIntBigListIterator, IntBigListIterators.BigListIteratorListIterator, IntBigListIterators.EmptyBigListIterator, IntBigListIterators.UnmodifiableBigListIteratorpublic interface IntBigListIterator extends IntBidirectionalIterator, BigListIterator<java.lang.Integer>
BigListIterator.BigListIterator| Modifier and Type | Method | Description |
|---|---|---|
default void |
add(int k) |
Inserts the specified element into the list (optional operation).
|
default void |
add(java.lang.Integer 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(int k) |
Replaces the last element returned by
next()
or previous() with the specified element
(optional operation). |
default void |
set(java.lang.Integer 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, previousIntforEachRemaining, next, nextIntdefault void set(int k)
next()
or previous() with the specified element
(optional operation).ListIterator.set(Object)default void add(int k)
ListIterator.add(Object)@Deprecated default void set(java.lang.Integer k)
IntIterator.next() or IntBidirectionalIterator.previous()
with the specified element (optional operation).set in interface BigListIterator<java.lang.Integer>k - an element.ListIterator.set(Object)@Deprecated default void add(java.lang.Integer k)
add in interface BigListIterator<java.lang.Integer>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
IntIterator.next() for n times (possibly stopping if Iterator.hasNext()
becomes false).
skip in interface IntBidirectionalIteratorskip 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()