it.unimi.dsi.fastutil.floats
Class AbstractFloat2ByteSortedMap.KeySetIterator
java.lang.Object
it.unimi.dsi.fastutil.floats.AbstractFloatIterator
it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
it.unimi.dsi.fastutil.floats.AbstractFloat2ByteSortedMap.KeySetIterator
- All Implemented Interfaces:
- BidirectionalIterator<Float>, FloatBidirectionalIterator, FloatIterator, ObjectBidirectionalIterator<Float>, ObjectIterator<Float>, Iterator<Float>
- Enclosing class:
- AbstractFloat2ByteSortedMap
protected static class AbstractFloat2ByteSortedMap.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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
protected final ObjectBidirectionalIterator<Map.Entry<Float,Byte>> i
AbstractFloat2ByteSortedMap.KeySetIterator
public AbstractFloat2ByteSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Float,Byte>> i)
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.