Package org.agrona.collections
Class Object2LongHashMap.ValueIterator
java.lang.Object
Object2LongHashMap<K>.org.agrona.collections.Object2LongHashMap.AbstractIterator<Long>
org.agrona.collections.Object2LongHashMap.ValueIterator
- Enclosing class:
Object2LongHashMap<K>
public final class Object2LongHashMap.ValueIterator
extends Object2LongHashMap<K>.AbstractIterator<Long>
Iterator over values providing unboxed access via
nextLong()
.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.agrona.collections.Object2LongHashMap.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
-
ValueIterator
public ValueIterator()Create a new instance.
-
-
Method Details
-
next
- Specified by:
next
in interfaceIterator<Long>
- Specified by:
next
in classObject2LongHashMap<K>.AbstractIterator<Long>
-
nextLong
public long nextLong()Get next value without boxing.- Returns:
- next value.
-