public static class IntBigListIterators.BigListIteratorListIterator extends java.lang.Object implements IntBigListIterator
Modifier and Type | Method and Description |
---|---|
void |
add(int ok)
Inserts the specified element into the list (optional operation).
|
int |
back(int n)
Moves back for the given number of elements.
|
long |
back(long n)
Moves back for the given number of elements.
|
void |
forEachRemaining(java.util.function.Consumer<? super java.lang.Integer> action)
Deprecated.
|
void |
forEachRemaining(java.util.function.IntConsumer action) |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
int |
nextInt()
Returns the next element as a primitive type.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
int |
previousInt()
Returns the previous element as a primitive type.
|
void |
remove() |
void |
set(int ok)
Replaces the last element returned by
next() or
previous() with the specified element (optional operation). |
int |
skip(int n)
Skips the given number of elements.
|
long |
skip(long n)
Skips the given number of elements.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, set
previous
forEachRemaining, next
public void set(int ok)
IntBigListIterator
next()
or
previous()
with the specified element (optional operation).set
in interface IntBigListIterator
ListIterator.set(Object)
public void add(int ok)
IntBigListIterator
add
in interface IntBigListIterator
ListIterator.add(Object)
public int back(int n)
IntBidirectionalIterator
The effect of this call is exactly the same as that of
calling IntBidirectionalIterator.previous()
for n
times (possibly stopping
if BidirectionalIterator.hasPrevious()
becomes false).
back
in interface IntBidirectionalIterator
back
in interface ObjectBidirectionalIterator<java.lang.Integer>
n
- the number of elements to skip back.IntBidirectionalIterator.previous()
public long back(long n)
IntBigListIterator
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 IntBigListIterator
n
- the number of elements to skip back.BidirectionalIterator.previous()
public void remove()
remove
in interface java.util.Iterator<java.lang.Integer>
public int skip(int n)
IntBigListIterator
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 IntBidirectionalIterator
skip
in interface IntBigListIterator
skip
in interface IntIterator
skip
in interface ObjectBidirectionalIterator<java.lang.Integer>
skip
in interface ObjectIterator<java.lang.Integer>
n
- the number of elements to skip.Iterator.next()
public long skip(long n)
IntBigListIterator
The effect of this call is exactly the same as that of
calling next()
for n
times (possibly stopping
if Iterator.hasNext()
becomes false).
skip
in interface IntBigListIterator
n
- the number of elements to skip.Iterator.next()
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Integer>
public boolean hasPrevious()
BidirectionalIterator
hasPrevious
in interface BidirectionalIterator<java.lang.Integer>
ListIterator.hasPrevious()
public int nextInt()
IntIterator
nextInt
in interface IntIterator
nextInt
in interface java.util.PrimitiveIterator.OfInt
Iterator.next()
public int previousInt()
IntBidirectionalIterator
previousInt
in interface IntBidirectionalIterator
ListIterator.previous()
public long nextIndex()
BigListIterator
nextIndex
in interface BigListIterator<java.lang.Integer>
ListIterator.nextIndex()
public long previousIndex()
BigListIterator
previousIndex
in interface BigListIterator<java.lang.Integer>
ListIterator.previousIndex()
public void forEachRemaining(java.util.function.IntConsumer action)
forEachRemaining
in interface java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer>
forEachRemaining
in interface java.util.PrimitiveIterator.OfInt
@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Integer> action)
IntIterator
forEachRemaining
in interface IntIterator
forEachRemaining
in interface java.util.Iterator<java.lang.Integer>
forEachRemaining
in interface java.util.PrimitiveIterator.OfInt