Package org.apache.commons.math4.util
Class OpenIntToFieldHashMap.Iterator
java.lang.Object
org.apache.commons.math4.util.OpenIntToFieldHashMap.Iterator
- Enclosing class:
- OpenIntToFieldHashMap<T extends FieldElement<T>>
public class OpenIntToFieldHashMap.Iterator
extends java.lang.Object
Iterator class for the map.
-
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
public int key() throws java.util.ConcurrentModificationException, java.util.NoSuchElementExceptionGet the key of current entry.- Returns:
- key of current entry
- Throws:
java.util.ConcurrentModificationException- if the map is modified during iterationjava.util.NoSuchElementException- if there is no element left in the map
-
value
Get the value of current entry.- Returns:
- value of current entry
- Throws:
java.util.ConcurrentModificationException- if the map is modified during iterationjava.util.NoSuchElementException- if there is no element left in the map
-
advance
public void advance() throws java.util.ConcurrentModificationException, java.util.NoSuchElementExceptionAdvance iterator one step further.- Throws:
java.util.ConcurrentModificationException- if the map is modified during iterationjava.util.NoSuchElementException- if there is no element left in the map
-