Package org.agrona.collections
Class Int2ObjectHashMap.KeyIterator
- java.lang.Object
-
- org.agrona.collections.Int2ObjectHashMap.AbstractIterator<java.lang.Integer>
-
- org.agrona.collections.Int2ObjectHashMap.KeyIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Integer>
- Enclosing class:
- Int2ObjectHashMap<V>
public final class Int2ObjectHashMap.KeyIterator extends Int2ObjectHashMap.AbstractIterator<java.lang.Integer>
Iterator over keys which supports access to unboxed keys vianextInt()
.
-
-
Field Summary
-
Fields inherited from class org.agrona.collections.Int2ObjectHashMap.AbstractIterator
isPositionValid
-
-
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.Int2ObjectHashMap.AbstractIterator
findNext, hasNext, position, remaining, remove, reset
-
-
-
-
Method Detail
-
next
public java.lang.Integer next()
- Specified by:
next
in interfacejava.util.Iterator<java.lang.Integer>
- Specified by:
next
in classInt2ObjectHashMap.AbstractIterator<java.lang.Integer>
-
nextInt
public int nextInt()
Return next key without boxing.- Returns:
- next key.
-
-