Package org.apache.commons.math3.util
Class OpenIntToFieldHashMap.Iterator
java.lang.Object
org.apache.commons.math3.util.OpenIntToFieldHashMap.Iterator
- Enclosing class:
OpenIntToFieldHashMap<T extends FieldElement<T>>
Iterator class for the map.
-
Method Summary
-
Method Details
-
hasNext
public boolean hasNext()Check if there is a next element in the map.- Returns:
- true if there is a next element
-
key
Get 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
Get 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
Advance iterator one step further.- Throws:
ConcurrentModificationException
- if the map is modified during iterationNoSuchElementException
- if there is no element left in the map
-