Package org.agrona.collections
Class Object2IntHashMap.EntryIterator
java.lang.Object
Object2IntHashMap<K>.org.agrona.collections.Object2IntHashMap.AbstractIterator<Map.Entry<K,Integer>>
org.agrona.collections.Object2IntHashMap.EntryIterator
- Enclosing class:
Object2IntHashMap<K>
public final class Object2IntHashMap.EntryIterator
extends Object2IntHashMap<K>.AbstractIterator<Map.Entry<K,Integer>>
implements Map.Entry<K,Integer>
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.Object2IntHashMap.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()
-
-
Method Details
-
next
-
allocateDuplicateEntry
-
getKey
-
getIntValue
public int getIntValue()Get int value without boxing.- Returns:
- value.
-
getValue
-
setValue
-
setValue
public int setValue(int 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
-