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)
This method just throws an
UnsupportedOperationException . |
long |
back(long n)
This method just iterates the type-specific version of
BidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false. |
void |
set(K k)
This method just throws an
UnsupportedOperationException . |
long |
skip(long n)
This method just iterates the type-specific version of
Iterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false. |
back
remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
back
skip
nextIndex, previousIndex
hasPrevious, previous
public void set(K k)
UnsupportedOperationException
.set
in interface ObjectBigListIterator<K>
public void add(K k)
UnsupportedOperationException
.add
in interface ObjectBigListIterator<K>
public long skip(long n)
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)
BidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.