Package org.agrona.collections
Class Long2ObjectCache.KeyIterator
java.lang.Object
org.agrona.collections.Long2ObjectCache.KeyIterator
- Enclosing class:
- Long2ObjectCache<V>
Iterator over keys which supports access to unboxed keys via
nextLong().-
Constructor Details
-
KeyIterator
public KeyIterator()Create a new instance.
-
-
Method Details
-
next
-
nextLong
public long nextLong()Return next key without boxing.- Returns:
- next key.
-
position
protected final int position()Position of the current element.- Returns:
- position of the current element.
-
hasNext
public boolean hasNext() -
findNext
protected final void findNext()Find next element. -
remove
public void remove()
-