it.unimi.dsi.fastutil
Interface BigListIterator<K>

All Superinterfaces:
BidirectionalIterator<K>, java.util.Iterator<K>
All Known Subinterfaces:
BooleanBigListIterator, ByteBigListIterator, CharBigListIterator, DoubleBigListIterator, FloatBigListIterator, IntBigListIterator, LongBigListIterator, ObjectBigListIterator<K>, ShortBigListIterator
All Known Implementing Classes:
AbstractBooleanBigListIterator, AbstractByteBigListIterator, AbstractCharBigListIterator, AbstractDoubleBigListIterator, AbstractFloatBigListIterator, AbstractIntBigListIterator, AbstractLongBigListIterator, AbstractObjectBigListIterator, AbstractShortBigListIterator, BooleanBigListIterators.BigListIteratorListIterator, BooleanBigListIterators.EmptyBigListIterator, BooleanBigListIterators.UnmodifiableBigListIterator, ByteBigListIterators.BigListIteratorListIterator, ByteBigListIterators.EmptyBigListIterator, ByteBigListIterators.UnmodifiableBigListIterator, CharBigListIterators.BigListIteratorListIterator, CharBigListIterators.EmptyBigListIterator, CharBigListIterators.UnmodifiableBigListIterator, DoubleBigListIterators.BigListIteratorListIterator, DoubleBigListIterators.EmptyBigListIterator, DoubleBigListIterators.UnmodifiableBigListIterator, FloatBigListIterators.BigListIteratorListIterator, FloatBigListIterators.EmptyBigListIterator, FloatBigListIterators.UnmodifiableBigListIterator, IntBigListIterators.BigListIteratorListIterator, IntBigListIterators.EmptyBigListIterator, IntBigListIterators.UnmodifiableBigListIterator, LongBigListIterators.BigListIteratorListIterator, LongBigListIterators.EmptyBigListIterator, LongBigListIterators.UnmodifiableBigListIterator, ObjectBigListIterators.BigListIteratorListIterator, ObjectBigListIterators.EmptyBigListIterator, ObjectBigListIterators.UnmodifiableBigListIterator, ShortBigListIterators.BigListIteratorListIterator, ShortBigListIterators.EmptyBigListIterator, ShortBigListIterators.UnmodifiableBigListIterator

public interface BigListIterator<K>
extends BidirectionalIterator<K>

A list iterator over a BigList.

This kind of iterator is essentially a ListIterator with long indices.

See Also:
Iterator, ListIterator

Method Summary
 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.
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

nextIndex

long nextIndex()
Returns the index of the element that would be returned by a subsequent call to next. (Returns list size if the list iterator is at the end of the list.)

Returns:
the index of the element that would be returned by a subsequent call to next, or list size if list iterator is at end of list.
See Also:
ListIterator.nextIndex()

previousIndex

long previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous. (Returns -1 if the list iterator is at the beginning of the list.)

Returns:
the index of the element that would be returned by a subsequent call to previous, or -1 if list iterator is at beginning of list.
See Also:
ListIterator.previousIndex()

skip

long skip(long n)
Skips the given number of elements.

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).

Parameters:
n - the number of elements to skip.
Returns:
the number of elements actually skipped.