Class Object2LongHashMap.ValueIterator

java.lang.Object
org.agrona.collections.Object2LongHashMap.ValueIterator
All Implemented Interfaces:
Iterator<Long>
Enclosing class:
Object2LongHashMap<K>

public final class Object2LongHashMap.ValueIterator extends Object
Iterator over values providing unboxed access via nextLong().
  • Constructor Details

    • ValueIterator

      public ValueIterator()
      Create a new instance.
  • Method Details

    • next

      public Long next()
      Specified by:
      next in interface Iterator<Long>
    • nextLong

      public long nextLong()
      Get next value without boxing.
      Returns:
      next value.
    • position

      protected final int position()
      Position of the current element.
      Returns:
      position of the element in the array.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • findNext

      protected final void findNext()
      Find next element.
      Throws:
      NoSuchElementException - if no more elements.
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>