Package org.hipparchus.util
Class AbstractOpenIntHashMap.BaseIterator
java.lang.Object
org.hipparchus.util.AbstractOpenIntHashMap.BaseIterator
- Direct Known Subclasses:
OpenIntToDoubleHashMap.Iterator
,OpenIntToFieldHashMap.Iterator
- Enclosing class:
- AbstractOpenIntHashMap
Iterator class for the map.
-
Constructor Details
-
BaseIterator
protected BaseIterator()Simple constructor.
-
-
Method Details
-
hasNext
public boolean hasNext()Check if there is a next element in the map.- Returns:
- true if there is a next element
-
getCurrent
protected int getCurrent()Get index of current entry.- Returns:
- key of current entry
- Since:
- 3.1
-
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
-
advance
Advance iterator one step further.- Throws:
ConcurrentModificationException
- if the map is modified during iterationNoSuchElementException
- if there is no element left in the map
-