public static class IntBigListIterators.BigListIteratorListIterator extends AbstractIntBigListIterator
| 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)
This implemntation iterates the type-specific version of
AbstractIntBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false. |
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()
This implementation delegates to
AbstractIntBidirectionalIterator.previous(). |
void |
remove()
This implementation always throws an
UnsupportedOperationException. |
void |
set(int ok)
Replaces the last element returned by
IntIterator.next() or
IntBidirectionalIterator.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.
|
add, setpreviousnextequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreviousnextforEachRemainingpublic void set(int ok)
AbstractIntBigListIteratorIntIterator.next() or
IntBidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface IntBigListIteratorset in class AbstractIntBigListIteratorListIterator.set(Object)public void add(int ok)
AbstractIntBigListIterator
This implementation always throws an
UnsupportedOperationException.
add in interface IntBigListIteratoradd in class AbstractIntBigListIteratorListIterator.add(Object)public int back(int n)
AbstractIntBidirectionalIterator
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).
This implemntation iterates the type-specific version of
AbstractIntBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in interface IntBidirectionalIteratorback in interface ObjectBidirectionalIterator<Integer>back in class AbstractIntBidirectionalIteratorn - the number of elements to skip backwards.AbstractIntBidirectionalIterator.previous()public long back(long n)
AbstractIntBigListIterator
This implemntation iterates the type-specific version of
AbstractIntBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in class AbstractIntBigListIteratorn - the number of elements to skip backwards.public void remove()
AbstractIntIterator
This implementation always throws an
UnsupportedOperationException.
remove in interface Iterator<Integer>remove in class AbstractIntIteratorpublic int skip(int n)
AbstractIntIterator
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).
This implementaion iterates the type-specific version of AbstractIntIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface IntIteratorskip in interface ObjectIterator<Integer>skip in class AbstractIntIteratorn - the number of elements to skip.Iterator.next()public long skip(long n)
AbstractIntBigListIteratorThe effect of this call is exactly the same as that of
calling Iterator.next() for n times (possibly stopping
if Iterator.hasNext() becomes false).
This implementaion iterates the type-specific version of AbstractIntIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface BigListIterator<Integer>skip in class AbstractIntBigListIteratorn - the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public int nextInt()
AbstractIntIteratorThis implementation delegates to the corresponding generic method.
nextInt in interface IntIteratornextInt in class AbstractIntIteratorIterator.next()public int previousInt()
AbstractIntBidirectionalIterator
This implementation delegates to AbstractIntBidirectionalIterator.previous().
previousInt in interface IntBidirectionalIteratorpreviousInt in class AbstractIntBidirectionalIteratorListIterator.previous()public long nextIndex()
BigListIteratorListIterator.nextIndex()public long previousIndex()
BigListIteratorListIterator.previousIndex()