public static class BooleanBigListIterators.BigListIteratorListIterator extends AbstractBooleanBigListIterator
| Modifier and Type | Method and Description |
|---|---|
void |
add(boolean 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
AbstractBooleanBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false. |
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
boolean |
nextBoolean()
Returns the next element as a primitive type.
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
boolean |
previousBoolean()
This implementation delegates to
AbstractBooleanBidirectionalIterator.previous(). |
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
void |
remove()
This implementation always throws an
UnsupportedOperationException. |
void |
set(boolean ok)
Replaces the last element returned by
BooleanIterator.next() or
BooleanBidirectionalIterator.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(boolean ok)
AbstractBooleanBigListIteratorBooleanIterator.next() or
BooleanBidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface BooleanBigListIteratorset in class AbstractBooleanBigListIteratorListIterator.set(Object)public void add(boolean ok)
AbstractBooleanBigListIterator
This implementation always throws an
UnsupportedOperationException.
add in interface BooleanBigListIteratoradd in class AbstractBooleanBigListIteratorListIterator.add(Object)public int back(int n)
AbstractBooleanBidirectionalIterator
The effect of this call is exactly the same as that of calling
BooleanBidirectionalIterator.previous() for n times (possibly stopping if
BidirectionalIterator.hasPrevious() becomes false).
This implemntation iterates the type-specific version of
AbstractBooleanBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in interface BooleanBidirectionalIteratorback in interface ObjectBidirectionalIterator<Boolean>back in class AbstractBooleanBidirectionalIteratorn - the number of elements to skip backwards.AbstractBooleanBidirectionalIterator.previous()public long back(long n)
AbstractBooleanBigListIterator
This implemntation iterates the type-specific version of
AbstractBooleanBidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
back in class AbstractBooleanBigListIteratorn - the number of elements to skip backwards.public void remove()
AbstractBooleanIterator
This implementation always throws an
UnsupportedOperationException.
remove in interface Iterator<Boolean>remove in class AbstractBooleanIteratorpublic int skip(int n)
AbstractBooleanIterator
The effect of this call is exactly the same as that of calling
BooleanIterator.next() for n times (possibly stopping if
Iterator.hasNext() becomes false).
This implementaion iterates the type-specific version of AbstractBooleanIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface BooleanIteratorskip in interface ObjectIterator<Boolean>skip in class AbstractBooleanIteratorn - the number of elements to skip.Iterator.next()public long skip(long n)
AbstractBooleanBigListIteratorThe 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 AbstractBooleanIterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface BigListIterator<Boolean>skip in class AbstractBooleanBigListIteratorn - the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public boolean nextBoolean()
AbstractBooleanIteratorThis implementation delegates to the corresponding generic method.
nextBoolean in interface BooleanIteratornextBoolean in class AbstractBooleanIteratorIterator.next()public boolean previousBoolean()
AbstractBooleanBidirectionalIterator
This implementation delegates to AbstractBooleanBidirectionalIterator.previous().
previousBoolean in interface BooleanBidirectionalIteratorpreviousBoolean in class AbstractBooleanBidirectionalIteratorListIterator.previous()public long nextIndex()
BigListIteratorListIterator.nextIndex()public long previousIndex()
BigListIteratorListIterator.previousIndex()