it.unimi.dsi.fastutil.doubles
Class AbstractDouble2ObjectSortedMap.KeySetIterator<V>
java.lang.Object
it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
it.unimi.dsi.fastutil.doubles.AbstractDoubleBidirectionalIterator
it.unimi.dsi.fastutil.doubles.AbstractDouble2ObjectSortedMap.KeySetIterator<V>
- All Implemented Interfaces:
- BidirectionalIterator<Double>, DoubleBidirectionalIterator, DoubleIterator, ObjectBidirectionalIterator<Double>, ObjectIterator<Double>, Iterator<Double>
- Enclosing class:
- AbstractDouble2ObjectSortedMap<V>
protected static class AbstractDouble2ObjectSortedMap.KeySetIterator<V>
- extends AbstractDoubleBidirectionalIterator
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. |
double |
nextDouble()
Delegates to the corresponding generic method. |
double |
previousDouble()
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<Double,V>> i
AbstractDouble2ObjectSortedMap.KeySetIterator
public AbstractDouble2ObjectSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Double,V>> i)
nextDouble
public double nextDouble()
- Description copied from class:
AbstractDoubleIterator
- Delegates to the corresponding generic method.
- Specified by:
nextDouble
in interface DoubleIterator
- Overrides:
nextDouble
in class AbstractDoubleIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousDouble
public double previousDouble()
- Description copied from class:
AbstractDoubleBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousDouble
in interface DoubleBidirectionalIterator
- Overrides:
previousDouble
in class AbstractDoubleBidirectionalIterator
- 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.