Class Int2IntHashMap.KeyIterator

java.lang.Object
org.agrona.collections.Int2IntHashMap.AbstractIterator
org.agrona.collections.Int2IntHashMap.KeyIterator
All Implemented Interfaces:
Iterator<Integer>
Enclosing class:
Int2IntHashMap

public final class Int2IntHashMap.KeyIterator extends Int2IntHashMap.AbstractIterator implements Iterator<Integer>
Iterator over keys which supports access to unboxed keys via nextValue().
  • Constructor Details

    • KeyIterator

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

    • next

      public Integer next()
      Specified by:
      next in interface Iterator<Integer>
    • nextValue

      public int nextValue()
      Return next key.
      Returns:
      next key.