public static class IntBigListIterators.BigListIteratorListIterator extends AbstractIntBigListIterator
Modifier and Type | Method and Description |
---|---|
void |
add(int ok)
This method just throws an
UnsupportedOperationException . |
int |
back(int n)
This method just iterates the type-specific version of
AbstractIntBidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false. |
long |
back(long n)
This method just 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()
Delegates to the corresponding generic method.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
int |
previousInt()
Delegates to the corresponding generic method.
|
void |
remove()
This method just throws an
UnsupportedOperationException . |
void |
set(int ok)
This method just throws an
UnsupportedOperationException . |
int |
skip(int n)
This method just iterates the type-specific version of
AbstractIntIterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false. |
long |
skip(long n)
This method just iterates the type-specific version of
AbstractIntIterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false. |
add, set
previous
next
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
previous
public void set(int ok)
AbstractIntBigListIterator
UnsupportedOperationException
.set
in interface IntBigListIterator
set
in class AbstractIntBigListIterator
public void add(int ok)
AbstractIntBigListIterator
UnsupportedOperationException
.add
in interface IntBigListIterator
add
in class AbstractIntBigListIterator
public int back(int n)
AbstractIntBidirectionalIterator
AbstractIntBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.back
in interface IntBidirectionalIterator
back
in interface ObjectBidirectionalIterator<Integer>
back
in class AbstractIntBidirectionalIterator
n
- the number of elements to skip back.Iterator.next()
public long back(long n)
AbstractIntBigListIterator
AbstractIntBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.back
in class AbstractIntBigListIterator
public void remove()
AbstractIntIterator
UnsupportedOperationException
.remove
in interface Iterator<Integer>
remove
in class AbstractIntIterator
public int skip(int n)
AbstractIntIterator
AbstractIntIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.skip
in interface IntIterator
skip
in interface ObjectIterator<Integer>
skip
in class AbstractIntIterator
n
- the number of elements to skip.Iterator.next()
public long skip(long n)
AbstractIntBigListIterator
AbstractIntIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.skip
in interface BigListIterator<Integer>
skip
in class AbstractIntBigListIterator
n
- the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIterator
ListIterator.hasPrevious()
public int nextInt()
AbstractIntIterator
nextInt
in interface IntIterator
nextInt
in class AbstractIntIterator
Iterator.next()
public int previousInt()
AbstractIntBidirectionalIterator
previousInt
in interface IntBidirectionalIterator
previousInt
in class AbstractIntBidirectionalIterator
ListIterator.previous()
public long nextIndex()
BigListIterator
ListIterator.nextIndex()
public long previousIndex()
BigListIterator
ListIterator.previousIndex()