it.unimi.dsi.fastutil.shorts
Class AbstractShort2DoubleSortedMap.ValuesIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
      extended by it.unimi.dsi.fastutil.shorts.AbstractShort2DoubleSortedMap.ValuesIterator
All Implemented Interfaces:
DoubleIterator, Iterator<Double>
Enclosing class:
AbstractShort2DoubleSortedMap

protected static class AbstractShort2DoubleSortedMap.ValuesIterator
extends AbstractDoubleIterator

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

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


Field Summary
protected  ObjectBidirectionalIterator<Map.Entry<Short,Double>> i
           
 
Constructor Summary
AbstractShort2DoubleSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<Short,Double>> i)
           
 
Method Summary
 boolean hasNext()
           
 double nextDouble()
          Delegates to the corresponding generic method.
 
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
 

Field Detail

i

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

AbstractShort2DoubleSortedMap.ValuesIterator

public AbstractShort2DoubleSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<Short,Double>> 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()

hasNext

public boolean hasNext()


Copyright © 2011. All Rights Reserved.