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