it.unimi.dsi.fastutil.floats
Class AbstractFloatBigListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.floats.AbstractFloatIterator
      extended by it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
          extended by it.unimi.dsi.fastutil.floats.AbstractFloatBigListIterator
All Implemented Interfaces:
BidirectionalIterator<Float>, BigListIterator<Float>, FloatBidirectionalIterator, FloatBigListIterator, FloatIterator, ObjectBidirectionalIterator<Float>, ObjectIterator<Float>, Iterator<Float>
Direct Known Subclasses:
FloatBigListIterators.BigListIteratorListIterator, FloatBigListIterators.EmptyBigListIterator, FloatBigListIterators.UnmodifiableBigListIterator

public abstract class AbstractFloatBigListIterator
extends AbstractFloatBidirectionalIterator
implements FloatBigListIterator

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

Constructor Summary
protected AbstractFloatBigListIterator()
           
 
Method Summary
 void add(float k)
          This method just throws an UnsupportedOperationException.
 void add(Float ok)
          Delegates to the corresponding type-specific method.
 long back(long n)
          This method just iterates the type-specific version of AbstractFloatBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 void set(float k)
          This method just throws an UnsupportedOperationException.
 void set(Float ok)
          Delegates to the corresponding type-specific method.
 long skip(long n)
          This method just iterates the type-specific version of AbstractFloatIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
back, previous, previousFloat
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatIterator
next, nextFloat, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatBidirectionalIterator
back, previousFloat
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatIterator
nextFloat, 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
 

Constructor Detail

AbstractFloatBigListIterator

protected AbstractFloatBigListIterator()
Method Detail

set

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

Specified by:
set in interface FloatBigListIterator

add

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

Specified by:
add in interface FloatBigListIterator

set

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

Specified by:
set in interface FloatBigListIterator

add

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

Specified by:
add in interface FloatBigListIterator

skip

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

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



Copyright © 2011. All Rights Reserved.