Package org.agrona.collections
Class Object2LongHashMap.EntryIterator
java.lang.Object
Object2LongHashMap<K>.org.agrona.collections.Object2LongHashMap.AbstractIterator<Map.Entry<K,Long>>
org.agrona.collections.Object2LongHashMap.EntryIterator
- Enclosing class:
Object2LongHashMap<K>
public final class Object2LongHashMap.EntryIterator
extends Object2LongHashMap<K>.AbstractIterator<Map.Entry<K,Long>>
implements Map.Entry<K,Long>
Iterator over entries which can provide unboxed access and optionally avoid allocation.
-
Nested Class Summary
Nested Classes -
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
EntryIterator
public EntryIterator()Create a new instance.
-
-
Method Details
-
next
-
allocateDuplicateEntry
-
getKey
-
getLongValue
public long getLongValue()Get long value without boxing.- Returns:
- value.
-
getValue
-
setValue
-
setValue
public long setValue(long value) Set value at current position without boxing.- Parameters:
value
- to be set.- Returns:
- old value.
- Throws:
IllegalArgumentException
- ifmissingValue == value
.
-
hashCode
public int hashCode() -
equals
-