Package org.agrona.collections
Class Int2ObjectHashMap.KeyIterator
- Enclosing class:
- Int2ObjectHashMap<V>
public final class Int2ObjectHashMap.KeyIterator
extends Int2ObjectHashMap<V>.AbstractIterator<Integer>
Iterator over keys which supports access to unboxed keys via
nextInt().-
Field Summary
Fields inherited from class org.agrona.collections.Int2ObjectHashMap.AbstractIterator
isPositionValid -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.agrona.collections.Int2ObjectHashMap.AbstractIterator
findNext, hasNext, position, remaining, remove, resetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
KeyIterator
public KeyIterator()Create a new instance.
-
-
Method Details
-
next
- Specified by:
nextin interfaceIterator<Integer>- Specified by:
nextin classInt2ObjectHashMap<V>.AbstractIterator<Integer>
-
nextInt
public int nextInt()Return next key without boxing.- Returns:
- next key.
-