public abstract class AbstractBooleanBigListIterator extends AbstractBooleanBidirectionalIterator implements BooleanBigListIterator
This implementation provides (deprecated) implementations of
ListIterator.previousIndex() and ListIterator.nextIndex()
that just invoke the corresponding BigListIterator methods.
ListIterator,
BigListIterator| Modifier and Type | Method and Description |
|---|---|
void |
add(boolean k)
Inserts the specified element into the list (optional operation).
|
void |
add(Boolean ok)
Deprecated.
Please use the corresponding type-specific method instead.
|
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. |
void |
set(boolean k)
Replaces the last element returned by
BooleanIterator.next() or
BooleanBidirectionalIterator.previous() with the specified element (optional operation). |
void |
set(Boolean ok)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
skip(long n)
Skips the given number of elements.
|
back, previous, previousBooleannext, nextBoolean, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, previous, previousBooleannext, nextBoolean, skipskiphasPreviousforEachRemaining, hasNext, removenextIndex, previousIndexpublic void set(boolean k)
BooleanIterator.next() or
BooleanBidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface BooleanBigListIteratorListIterator.set(Object)public void add(boolean k)
This implementation always throws an
UnsupportedOperationException.
add in interface BooleanBigListIteratorListIterator.add(Object)@Deprecated public void set(Boolean ok)
BooleanIterator.next() or
BooleanBidirectionalIterator.previous() with the specified element (optional operation).
This implementation delegates to the corresponding type-specific method.
set in interface BooleanBigListIterator@Deprecated public void add(Boolean ok)
This implementation delegates to the corresponding type-specific method.
add in interface BooleanBigListIteratorpublic long skip(long n)
The 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>n - the number of elements to skip.public 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.
n - the number of elements to skip backwards.