it.unimi.dsi.fastutil.ints
Class AbstractIntBigListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.AbstractIntIterator
      extended by it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
          extended by it.unimi.dsi.fastutil.ints.AbstractIntBigListIterator
All Implemented Interfaces:
BidirectionalIterator<Integer>, BigListIterator<Integer>, IntBidirectionalIterator, IntBigListIterator, IntIterator, ObjectBidirectionalIterator<Integer>, ObjectIterator<Integer>, Iterator<Integer>
Direct Known Subclasses:
IntBigListIterators.BigListIteratorListIterator, IntBigListIterators.EmptyBigListIterator, IntBigListIterators.UnmodifiableBigListIterator

public abstract class AbstractIntBigListIterator
extends AbstractIntBidirectionalIterator
implements IntBigListIterator

An abstract class facilitating the creation of type-specific big-list iterators.

This implementation provides (deprecated) implementations of ListIterator.previousIndex() and ListIterator.nextIndex() that just invoke the corresponding BigListIterator methods.

See Also:
ListIterator, BigListIterator

Method Summary
 void add(int k)
          This method just throws an UnsupportedOperationException.
 void add(Integer ok)
          Delegates to the corresponding type-specific method.
 long back(long n)
          This method just iterates the type-specific version of AbstractIntBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 void set(int k)
          This method just throws an UnsupportedOperationException.
 void set(Integer ok)
          Delegates to the corresponding type-specific method.
 long skip(long n)
          This method just iterates the type-specific version of AbstractIntIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
back, previous, previousInt
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntIterator
next, nextInt, remove, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntBidirectionalIterator
back, previousInt
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
nextInt, skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 
Methods inherited from interface it.unimi.dsi.fastutil.BigListIterator
nextIndex, previousIndex
 

Method Detail

set

public void set(Integer ok)
Delegates to the corresponding type-specific method.

Specified by:
set in interface IntBigListIterator

add

public void add(Integer ok)
Delegates to the corresponding type-specific method.

Specified by:
add in interface IntBigListIterator

set

public void set(int k)
This method just throws an UnsupportedOperationException.

Specified by:
set in interface IntBigListIterator

add

public void add(int k)
This method just throws an UnsupportedOperationException.

Specified by:
add in interface IntBigListIterator

skip

public long skip(long n)
This method just iterates the type-specific version of AbstractIntIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.

Specified by:
skip in interface BigListIterator<Integer>
Parameters:
n - the number of elements to skip.
Returns:
the number of elements actually skipped.

back

public long back(long n)
This method just iterates the type-specific version of AbstractIntBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.