Package org.agrona.collections
Class Long2ObjectCache.KeyIterator
java.lang.Object
Long2ObjectCache<V>.org.agrona.collections.Long2ObjectCache.AbstractIterator<Long>
org.agrona.collections.Long2ObjectCache.KeyIterator
- Enclosing class:
Long2ObjectCache<V>
Iterator over keys which supports access to unboxed keys via
nextLong()
.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.agrona.collections.Long2ObjectCache.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()Create a new instance.
-
-
Method Details
-
next
- Specified by:
next
in interfaceIterator<Long>
- Specified by:
next
in classLong2ObjectCache<V>.AbstractIterator<Long>
-
nextLong
public long nextLong()Return next key without boxing.- Returns:
- next key.
-