|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.util.OpenIntToDoubleHashMap.Iterator
public class OpenIntToDoubleHashMap.Iterator
Iterator class for the map.
Field Summary | |
---|---|
private int |
current
Index of current element. |
private int |
next
Index of next element. |
private int |
referenceCount
Reference modification count. |
Constructor Summary | |
---|---|
private |
OpenIntToDoubleHashMap.Iterator()
Simple constructor. |
Method Summary | |
---|---|
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. |
double |
value()
Get the value of current entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int referenceCount
private int current
private int next
Constructor Detail |
---|
private OpenIntToDoubleHashMap.Iterator()
Method Detail |
---|
public boolean hasNext()
public int key() throws java.util.ConcurrentModificationException, java.util.NoSuchElementException
java.util.ConcurrentModificationException
- if the map is modified during iteration
java.util.NoSuchElementException
- if there is no element left in the mappublic double value() throws java.util.ConcurrentModificationException, java.util.NoSuchElementException
java.util.ConcurrentModificationException
- if the map is modified during iteration
java.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 iteration
java.util.NoSuchElementException
- if there is no element left in the map
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |