public final class Long2LongHashMap.EntryIterator extends Object implements Iterator<Map.Entry<Long,Long>>, Map.Entry<Long,Long>, Serializable
Modifier and Type | Class and Description |
---|---|
class |
Long2LongHashMap.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.
|
Long |
getKey() |
long |
getLongKey()
Returns the key of the current entry.
|
long |
getLongValue()
Returns the value of the current entry.
|
Long |
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<Long,Long> |
next() |
int |
remaining()
Number of remaining elements.
|
void |
remove() |
long |
setValue(long value)
Sets the value of the current entry.
|
Long |
setValue(Long value) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, remove
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public long getLongKey()
public long getLongValue()
public long setValue(long 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.