Package org.agrona.collections
Class Int2IntHashMap.EntryIterator
java.lang.Object
org.agrona.collections.Int2IntHashMap.AbstractIterator
org.agrona.collections.Int2IntHashMap.EntryIterator
- Enclosing class:
Int2IntHashMap
public final class Int2IntHashMap.EntryIterator
extends Int2IntHashMap.AbstractIterator
implements Iterator<Map.Entry<Integer,Integer>>, Map.Entry<Integer,Integer>
Iterator over entries which supports access to unboxed keys and values.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.agrona.collections.Int2IntHashMap.AbstractIterator
isPositionValid
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.agrona.collections.Int2IntHashMap.AbstractIterator
findNext, hasNext, keyPosition, remaining, 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, hasNext, remove
-
Constructor Details
-
EntryIterator
public EntryIterator()Create a new instance.
-
-
Method Details
-
getKey
-
getIntKey
public int getIntKey()Returns the key of the current entry.- Returns:
- the key.
-
getValue
-
getIntValue
public int getIntValue()Returns the value of the current entry.- Returns:
- the value.
-
setValue
-
setValue
public int setValue(int value) Sets the value of the current entry.- Parameters:
value
- to be set.- Returns:
- previous value of the entry.
-
next
-
allocateDuplicateEntry
-
hashCode
public int hashCode() -
equals
-