Package org.agrona.collections
Class Long2ObjectHashMap.EntryIterator
java.lang.Object
org.agrona.collections.Long2ObjectHashMap.EntryIterator
- Enclosing class:
- Long2ObjectHashMap<V>
Iterator over entries which supports access to unboxed keys via
getLongKey().-
Constructor Details
-
EntryIterator
public EntryIterator()Create a new instance.
-
-
Method Details
-
next
-
getKey
-
getLongKey
public long getLongKey()Get key without boxing.- Returns:
- key.
-
getValue
-
setValue
-
position
protected final int position()Position of the current element.- Returns:
- position of the current element.
-
remaining
public int remaining()Number of remaining elements.- Returns:
- number of remaining elements.
-
hasNext
public boolean hasNext() -
findNext
protected final void findNext()Find the next element.- Throws:
NoSuchElementException- if no more elements.
-
remove
public void remove()
-