public static class BooleanBigListIterators.BigListIteratorListIterator extends AbstractBooleanBigListIterator
Modifier and Type | Method and Description |
---|---|
void |
add(boolean ok)
This method just throws an
UnsupportedOperationException . |
int |
back(int n)
This method just iterates the type-specific version of
AbstractBooleanBidirectionalIterator.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
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()
Delegates to the corresponding generic method.
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
boolean |
previousBoolean()
Delegates to the corresponding generic method.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
void |
remove()
This method just throws an
UnsupportedOperationException . |
void |
set(boolean ok)
This method just throws an
UnsupportedOperationException . |
int |
skip(int n)
This method just iterates the type-specific version of
AbstractBooleanIterator.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
AbstractBooleanIterator.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(boolean ok)
AbstractBooleanBigListIterator
UnsupportedOperationException
.set
in interface BooleanBigListIterator
set
in class AbstractBooleanBigListIterator
public void add(boolean ok)
AbstractBooleanBigListIterator
UnsupportedOperationException
.add
in interface BooleanBigListIterator
add
in class AbstractBooleanBigListIterator
public int back(int n)
AbstractBooleanBidirectionalIterator
AbstractBooleanBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.back
in interface BooleanBidirectionalIterator
back
in interface ObjectBidirectionalIterator<Boolean>
back
in class AbstractBooleanBidirectionalIterator
n
- the number of elements to skip back.Iterator.next()
public long back(long n)
AbstractBooleanBigListIterator
AbstractBooleanBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.back
in class AbstractBooleanBigListIterator
public void remove()
AbstractBooleanIterator
UnsupportedOperationException
.remove
in interface Iterator<Boolean>
remove
in class AbstractBooleanIterator
public int skip(int n)
AbstractBooleanIterator
AbstractBooleanIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.skip
in interface BooleanIterator
skip
in interface ObjectIterator<Boolean>
skip
in class AbstractBooleanIterator
n
- the number of elements to skip.Iterator.next()
public long skip(long n)
AbstractBooleanBigListIterator
AbstractBooleanIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.skip
in interface BigListIterator<Boolean>
skip
in class AbstractBooleanBigListIterator
n
- the number of elements to skip.public boolean hasNext()
public boolean hasPrevious()
BidirectionalIterator
ListIterator.hasPrevious()
public boolean nextBoolean()
AbstractBooleanIterator
nextBoolean
in interface BooleanIterator
nextBoolean
in class AbstractBooleanIterator
Iterator.next()
public boolean previousBoolean()
AbstractBooleanBidirectionalIterator
previousBoolean
in interface BooleanBidirectionalIterator
previousBoolean
in class AbstractBooleanBidirectionalIterator
ListIterator.previous()
public long nextIndex()
BigListIterator
ListIterator.nextIndex()
public long previousIndex()
BigListIterator
ListIterator.previousIndex()