it.unimi.dsi.fastutil.doubles
Class AbstractDouble2CharSortedMap.KeySetIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
      extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleBidirectionalIterator
          extended by it.unimi.dsi.fastutil.doubles.AbstractDouble2CharSortedMap.KeySetIterator
All Implemented Interfaces:
BidirectionalIterator<Double>, DoubleBidirectionalIterator, DoubleIterator, ObjectBidirectionalIterator<Double>, ObjectIterator<Double>, Iterator<Double>
Enclosing class:
AbstractDouble2CharSortedMap

protected static class AbstractDouble2CharSortedMap.KeySetIterator
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.


Field Summary
protected  ObjectBidirectionalIterator<Map.Entry<Double,Character>> i
           
 
Constructor Summary
AbstractDouble2CharSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Double,Character>> i)
           
 
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 it.unimi.dsi.fastutil.doubles.AbstractDoubleBidirectionalIterator
back, previous
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
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.doubles.DoubleIterator
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<Double,Character>> i
Constructor Detail

AbstractDouble2CharSortedMap.KeySetIterator

public AbstractDouble2CharSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Double,Character>> i)
Method Detail

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.