public interface BigListIterator<K> extends BidirectionalIterator<K>
BigList
.
This kind of iterator is essentially a ListIterator
with long indices.
Iterator
,
ListIterator
Modifier and Type | Method and Description |
---|---|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
long |
skip(long n)
Skips the given number of elements.
|
hasPrevious, previous
long nextIndex()
ListIterator.nextIndex()
long previousIndex()
ListIterator.previousIndex()
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).
n
- the number of elements to skip.