Package org.agrona.collections
Class Int2ObjectCache.KeyIterator
java.lang.Object
Int2ObjectCache<V>.org.agrona.collections.Int2ObjectCache.AbstractIterator<Integer>
org.agrona.collections.Int2ObjectCache.KeyIterator
- Enclosing class:
Int2ObjectCache<V>
Iterator over keys which supports access to unboxed keys via
nextInt()
.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.agrona.collections.Int2ObjectCache.AbstractIterator
findNext, hasNext, position, remove, reset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
KeyIterator
public KeyIterator()
-
-
Method Details
-
next
- Specified by:
next
in interfaceIterator<Integer>
- Specified by:
next
in classInt2ObjectCache<V>.AbstractIterator<Integer>
-
nextInt
public int nextInt()Return next key without boxing.- Returns:
- next key.
-