Package repast.simphony.util.collections
Class OpenLongToDoubleHashMap.Iterator
java.lang.Object
repast.simphony.util.collections.OpenLongToDoubleHashMap.Iterator
- Enclosing class:
- OpenLongToDoubleHashMap
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
-