Class Object2IntHashMap.ValueIterator
java.lang.Object
Object2IntHashMap<K>.org.agrona.collections.Object2IntHashMap.AbstractIterator<Integer>
org.agrona.collections.Object2IntHashMap.ValueIterator
- Enclosing class:
Object2IntHashMap<K>
public final class Object2IntHashMap.ValueIterator
extends Object2IntHashMap<K>.AbstractIterator<Integer>
Iterator over values providing unboxed access via
nextInt().-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object2IntHashMap.AbstractIterator
findNext, hasNext, position, remove, resetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
ValueIterator
public ValueIterator()Create a new instance.
-
-
Method Details
-
next
- Specified by:
nextin interfaceIterator<Integer>- Specified by:
nextin classObject2IntHashMap<K>.AbstractIterator<Integer>
-
nextInt
public int nextInt()Get next value without boxing.- Returns:
- next value.
-