Class Object2ObjectHashMap.EntryIterator
java.lang.Object
org.agrona.collections.Object2ObjectHashMap.EntryIterator
- Enclosing class:
Object2ObjectHashMap<K,V>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected final voidfindNext()Find next element.getKey()getValue()inthashCode()booleanhasNext()Check if there is next element to iterate.next()intReturn number of remaining elements.voidremove()Removes from the underlying collection the last element returned by this iterator.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, hasNext, remove
-
Field Details
-
isPositionValid
protected boolean isPositionValidIs position valid.
-
-
Constructor Details
-
EntryIterator
public EntryIterator()Create a new instance.
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
next
-
hashCode
-
equals
-
remaining
public int remaining()Return number of remaining elements.- Returns:
- number of remaining elements.
-
hasNext
public boolean hasNext()Check if there is next element to iterate.- Returns:
trueifremaining > 0.
-
findNext
protected final void findNext()Find next element.- Throws:
NoSuchElementException- if no more elements.
-
remove
public void remove()Removes from the underlying collection the last element returned by this iterator.
-