Class AbstractObject2LongSortedMap.ValuesIterator<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2LongSortedMap.ValuesIterator<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.longs.LongIterator, Iterator<Long>, PrimitiveIterator<Long,LongConsumer>, PrimitiveIterator.OfLong
Enclosing class:
AbstractObject2LongSortedMap<K>

protected static class AbstractObject2LongSortedMap.ValuesIterator<K> extends Object implements it.unimi.dsi.fastutil.longs.LongIterator
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

    • i

      protected final it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Object2LongMap.Entry<K>> i
  • Constructor Details

    • ValuesIterator

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

    • nextLong

      public long nextLong()
      Specified by:
      nextLong in interface it.unimi.dsi.fastutil.longs.LongIterator
      Specified by:
      nextLong in interface PrimitiveIterator.OfLong
    • hasNext

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