public abstract class AbstractObjectBigListIterator<K> extends AbstractObjectBidirectionalIterator<K> implements ObjectBigListIterator<K>
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(K k)
Inserts the specified element into the list (optional operation).
|
long |
back(long n)
This implemntation iterates the type-specific version of
BidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false. |
void |
set(K k)
Replaces the last element returned by
Iterator.next() or
BidirectionalIterator.previous() with the specified element (optional operation). |
long |
skip(long n)
Skips the given number of elements.
|
backremove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbackskipnextIndex, previousIndexhasPrevious, previousforEachRemaining, hasNext, next, removepublic void set(K k)
Iterator.next() or
BidirectionalIterator.previous() with the specified element (optional operation).
This implementation always throws an
UnsupportedOperationException.
set in interface ObjectBigListIterator<K>ListIterator.set(Object)public void add(K k)
This implementation always throws an
UnsupportedOperationException.
add in interface ObjectBigListIterator<K>ListIterator.add(Object)public 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 Iterator.next()
for at most n times, stopping if Iterator.hasNext() becomes
false.
skip in interface BigListIterator<K>n - the number of elements to skip.public long back(long n)
This implemntation iterates the type-specific version of
BidirectionalIterator.previous() for at most n times, stopping if
BidirectionalIterator.hasPrevious() becomes false.
n - the number of elements to skip backwards.