Class AbstractInt2ReferenceSortedMap.ValuesIterator<V>

java.lang.Object
it.unimi.dsi.fastutil.ints.AbstractInt2ReferenceSortedMap.ValuesIterator<V>
All Implemented Interfaces:
it.unimi.dsi.fastutil.objects.ObjectIterator<V>, Iterator<V>
Enclosing class:
AbstractInt2ReferenceSortedMap<V>

protected static class AbstractInt2ReferenceSortedMap.ValuesIterator<V> extends Object implements it.unimi.dsi.fastutil.objects.ObjectIterator<V>
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<Int2ReferenceMap.Entry<V>> i)
  • Method Details

    • next

      public V next()
      Specified by:
      next in interface Iterator<V>
    • hasNext

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