public final class Int2IntHashMap.EntryIterator extends Object implements Iterator<Map.Entry<Integer,Integer>>, Map.Entry<Integer,Integer>, Serializable
Modifier and Type | Class and Description |
---|---|
class |
Int2IntHashMap.EntryIterator.MapEntry
An
Map.Entry implementation. |
Modifier and Type | Field and Description |
---|---|
protected boolean |
isPositionValid
Is current position valid.
|
Constructor and Description |
---|
EntryIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
protected void |
findNext()
Advance to the next entry.
|
int |
getIntKey()
Returns the key of the current entry.
|
int |
getIntValue()
Returns the value of the current entry.
|
Integer |
getKey() |
Integer |
getValue() |
int |
hashCode() |
boolean |
hasNext()
Check if there are more elements remaining.
|
protected int |
keyPosition()
Returns position of the key of the current entry.
|
Map.Entry<Integer,Integer> |
next() |
int |
remaining()
Number of remaining elements.
|
void |
remove() |
int |
setValue(int value)
Sets the value of the current entry.
|
Integer |
setValue(Integer value) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, remove
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public int getIntKey()
public int getIntValue()
public int setValue(int value)
value
- to be set.public int hashCode()
public boolean equals(Object o)
protected final int keyPosition()
public int remaining()
public boolean hasNext()
true
if remaining > 0
.protected final void findNext()
NoSuchElementException
- if no more entries available.public void remove()
Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.