public abstract class AbstractLongBigListIterator extends AbstractLongBidirectionalIterator implements LongBigListIterator
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(long k)
This method just throws an
UnsupportedOperationException . |
void |
add(Long ok)
Delegates to the corresponding type-specific method.
|
long |
back(long n)
This method just iterates the type-specific version of
AbstractLongBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false. |
void |
set(long k)
This method just throws an
UnsupportedOperationException . |
void |
set(Long ok)
Delegates to the corresponding type-specific method.
|
long |
skip(long n)
This method just iterates the type-specific version of
AbstractLongIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false. |
back, previous, previousLong
next, nextLong, remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
back, previousLong
nextLong, skip
skip
hasPrevious, previous
forEachRemaining, hasNext, next, remove
nextIndex, previousIndex
public void set(Long ok)
set
in interface LongBigListIterator
public void add(Long ok)
add
in interface LongBigListIterator
public void set(long k)
UnsupportedOperationException
.set
in interface LongBigListIterator
public void add(long k)
UnsupportedOperationException
.add
in interface LongBigListIterator
public long skip(long n)
AbstractLongIterator.next()
for at most n
times, stopping if Iterator.hasNext()
becomes false.skip
in interface BigListIterator<Long>
n
- the number of elements to skip.public long back(long n)
AbstractLongBidirectionalIterator.previous()
for at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.