it.unimi.dsi.fastutil.doubles
Class AbstractDoubleBigListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
      extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleBidirectionalIterator
          extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleBigListIterator
All Implemented Interfaces:
BidirectionalIterator<java.lang.Double>, BigListIterator<java.lang.Double>, DoubleBidirectionalIterator, DoubleBigListIterator, DoubleIterator, ObjectBidirectionalIterator<java.lang.Double>, ObjectIterator<java.lang.Double>, java.util.Iterator<java.lang.Double>
Direct Known Subclasses:
DoubleBigListIterators.BigListIteratorListIterator, DoubleBigListIterators.EmptyBigListIterator, DoubleBigListIterators.UnmodifiableBigListIterator

public abstract class AbstractDoubleBigListIterator
extends AbstractDoubleBidirectionalIterator
implements DoubleBigListIterator

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(double k)
          This method just throws an UnsupportedOperationException.
 void add(java.lang.Double ok)
          Delegates to the corresponding type-specific method.
 long back(long n)
          This method just iterates the type-specific version of AbstractDoubleBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 void set(double k)
          This method just throws an UnsupportedOperationException.
 void set(java.lang.Double ok)
          Delegates to the corresponding type-specific method.
 long skip(long n)
          This method just iterates the type-specific version of AbstractDoubleIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDoubleBidirectionalIterator
back, previous, previousDouble
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
next, nextDouble, 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.doubles.DoubleBidirectionalIterator
back, previousDouble
 
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleIterator
nextDouble, 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(java.lang.Double ok)
Delegates to the corresponding type-specific method.

Specified by:
set in interface DoubleBigListIterator

add

public void add(java.lang.Double ok)
Delegates to the corresponding type-specific method.

Specified by:
add in interface DoubleBigListIterator

set

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

Specified by:
set in interface DoubleBigListIterator

add

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

Specified by:
add in interface DoubleBigListIterator

skip

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

Specified by:
skip in interface BigListIterator<java.lang.Double>
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 AbstractDoubleBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.