it.unimi.dsi.fastutil.floats
Class FloatIterators.EmptyIterator

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.AbstractFloatListIterator
              extended by it.unimi.dsi.fastutil.floats.FloatIterators.EmptyIterator
All Implemented Interfaces:
BidirectionalIterator<Float>, FloatBidirectionalIterator, FloatIterator, FloatListIterator, ObjectBidirectionalIterator<Float>, ObjectIterator<Float>, Iterator<Float>, ListIterator<Float>
Enclosing class:
FloatIterators

public static class FloatIterators.EmptyIterator
extends AbstractFloatListIterator

A class returning no elements and a type-specific iterator interface.

This class may be useful to implement your own in case you subclass a type-specific iterator.


Field Summary
static long serialVersionUID
           
 
Method Summary
 int back(int n)
          This method just iterates the type-specific version of AbstractFloatBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 Object clone()
           
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 float nextFloat()
          Delegates to the corresponding generic method.
 int nextIndex()
           
 float previousFloat()
          Delegates to the corresponding generic method.
 int previousIndex()
           
 int skip(int 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.AbstractFloatListIterator
add, add, set, set
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
previous
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatIterator
next, remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.ListIterator
next, previous, remove
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
previous
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()
Description copied from interface: BidirectionalIterator
Returns whether there is a previous element.

Returns:
whether there is a previous element.
See Also:
ListIterator.hasPrevious()

nextFloat

public float nextFloat()
Description copied from class: AbstractFloatIterator
Delegates to the corresponding generic method.

Specified by:
nextFloat in interface FloatIterator
Overrides:
nextFloat in class AbstractFloatIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

previousFloat

public float previousFloat()
Description copied from class: AbstractFloatBidirectionalIterator
Delegates to the corresponding generic method.

Specified by:
previousFloat in interface FloatBidirectionalIterator
Overrides:
previousFloat in class AbstractFloatBidirectionalIterator
Returns:
the previous element in the iteration.
See Also:
ListIterator.previous()

nextIndex

public int nextIndex()

previousIndex

public int previousIndex()

skip

public int skip(int n)
Description copied from class: AbstractFloatIterator
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 FloatIterator
Specified by:
skip in interface ObjectIterator<Float>
Overrides:
skip in class AbstractFloatIterator
Parameters:
n - the number of elements to skip.
Returns:
the number of elements actually skipped.
See Also:
Iterator.next()

back

public int back(int n)
Description copied from class: AbstractFloatBidirectionalIterator
This method just iterates the type-specific version of AbstractFloatBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.

Specified by:
back in interface FloatBidirectionalIterator
Specified by:
back in interface ObjectBidirectionalIterator<Float>
Overrides:
back in class AbstractFloatBidirectionalIterator
Parameters:
n - the number of elements to skip back.
Returns:
the number of elements actually skipped.
See Also:
Iterator.next()

clone

public Object clone()
Overrides:
clone in class Object