Package org.hipparchus.util
Class OpenIntToDoubleHashMap.Iterator
- java.lang.Object
-
- org.hipparchus.util.OpenIntToDoubleHashMap.Iterator
-
- Enclosing class:
- OpenIntToDoubleHashMap
public class OpenIntToDoubleHashMap.Iterator extends Object
Iterator class for the map.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadvance()Advance iterator one step further.booleanhasNext()Check if there is a next element in the map.intkey()Get the key of current entry.doublevalue()Get the value of current entry.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Check if there is a next element in the map.- Returns:
- true if there is a next element
-
key
public int key() throws ConcurrentModificationException, NoSuchElementExceptionGet the key of current entry.- Returns:
- key of current entry
- Throws:
ConcurrentModificationException- if the map is modified during iterationNoSuchElementException- if there is no element left in the map
-
value
public double value() throws ConcurrentModificationException, NoSuchElementExceptionGet the value of current entry.- Returns:
- value of current entry
- Throws:
ConcurrentModificationException- if the map is modified during iterationNoSuchElementException- if there is no element left in the map
-
advance
public void advance() throws ConcurrentModificationException, NoSuchElementExceptionAdvance iterator one step further.- Throws:
ConcurrentModificationException- if the map is modified during iterationNoSuchElementException- if there is no element left in the map
-
-