Class Object2LongHashMap.KeyIterator

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

public final class Object2LongHashMap.KeyIterator extends Object
Iterator over keys.
  • Constructor Details

    • KeyIterator

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

    • next

      public K next()
      Specified by:
      next in interface Iterator<K>
    • 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>