Class Long2LongHashMap.KeyIterator

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

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

    • KeyIterator

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

    • next

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

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