public class OpenIntToFieldHashMap.Iterator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
current
Index of current element.
|
private int |
next
Index of next element.
|
private int |
referenceCount
Reference modification count.
|
Modifier | Constructor and Description |
---|---|
private |
Iterator()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
advance()
Advance iterator one step further.
|
boolean |
hasNext()
Check if there is a next element in the map.
|
int |
key()
Get the key of current entry.
|
T |
value()
Get the value of current entry.
|
private final int referenceCount
private int current
private int next
public boolean hasNext()
public int key() throws java.util.ConcurrentModificationException, java.util.NoSuchElementException
java.util.ConcurrentModificationException
- if the map is modified during iterationjava.util.NoSuchElementException
- if there is no element left in the mappublic T value() throws java.util.ConcurrentModificationException, java.util.NoSuchElementException
java.util.ConcurrentModificationException
- if the map is modified during iterationjava.util.NoSuchElementException
- if there is no element left in the mappublic void advance() throws java.util.ConcurrentModificationException, java.util.NoSuchElementException
java.util.ConcurrentModificationException
- if the map is modified during iterationjava.util.NoSuchElementException
- if there is no element left in the map