it.unimi.dsi.fastutil.floats
Class AbstractFloat2DoubleSortedMap.KeySetIterator

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.AbstractFloat2DoubleSortedMap.KeySetIterator
All Implemented Interfaces:
BidirectionalIterator<Float>, FloatBidirectionalIterator, FloatIterator, ObjectBidirectionalIterator<Float>, ObjectIterator<Float>, Iterator<Float>
Enclosing class:
AbstractFloat2DoubleSortedMap

protected static class AbstractFloat2DoubleSortedMap.KeySetIterator
extends AbstractFloatBidirectionalIterator

A wrapper exhibiting a map iterator as an iterator on keys.

To provide an iterator on keys, just create an instance of this class using the corresponding iterator on entries.


Field Summary
protected  ObjectBidirectionalIterator<Map.Entry<Float,Double>> i
           
 
Constructor Summary
AbstractFloat2DoubleSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Float,Double>> i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 float nextFloat()
          Delegates to the corresponding generic method.
 float previousFloat()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
back, previous
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatIterator
next, 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.FloatIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface java.util.Iterator
next, remove
 

Field Detail

i

protected final ObjectBidirectionalIterator<Map.Entry<Float,Double>> i
Constructor Detail

AbstractFloat2DoubleSortedMap.KeySetIterator

public AbstractFloat2DoubleSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Float,Double>> i)
Method Detail

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

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


Copyright © 2011. All Rights Reserved.