Class AbstractObject2DoubleSortedMap.ValuesIterator<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2DoubleSortedMap.ValuesIterator<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.DoubleIterator, Iterator<Double>, PrimitiveIterator<Double,DoubleConsumer>, PrimitiveIterator.OfDouble
Enclosing class:
AbstractObject2DoubleSortedMap<K>

protected static class AbstractObject2DoubleSortedMap.ValuesIterator<K> extends Object implements it.unimi.dsi.fastutil.doubles.DoubleIterator
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 Details

  • Constructor Details

    • ValuesIterator

      public ValuesIterator(it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Object2DoubleMap.Entry<K>> i)
  • Method Details

    • nextDouble

      public double nextDouble()
      Specified by:
      nextDouble in interface it.unimi.dsi.fastutil.doubles.DoubleIterator
      Specified by:
      nextDouble in interface PrimitiveIterator.OfDouble
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<K>