Package org.agrona.collections
Class Int2ObjectCache.KeyIterator
- java.lang.Object
-
- org.agrona.collections.Int2ObjectCache.AbstractIterator<java.lang.Integer>
-
- org.agrona.collections.Int2ObjectCache.KeyIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Integer>
- Enclosing class:
- Int2ObjectCache<V>
public final class Int2ObjectCache.KeyIterator extends Int2ObjectCache.AbstractIterator<java.lang.Integer>
Iterator over keys which supports access to unboxed keys vianextInt()
.
-
-
Constructor Summary
Constructors Constructor Description KeyIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
next()
int
nextInt()
Return next key without boxing.-
Methods inherited from class org.agrona.collections.Int2ObjectCache.AbstractIterator
findNext, hasNext, position, remove, reset
-
-
-
-
Method Detail
-
next
public java.lang.Integer next()
- Specified by:
next
in interfacejava.util.Iterator<java.lang.Integer>
- Specified by:
next
in classInt2ObjectCache.AbstractIterator<java.lang.Integer>
-
nextInt
public int nextInt()
Return next key without boxing.- Returns:
- next key.
-
-