Class IDScoreMap.Iterator
java.lang.Object
com.aquima.interactions.matching.util.IDScoreMap.Iterator
- Enclosing class:
IDScoreMap
Iterator class that can be used to iterate over the contents of an IDScoreMap class.
- Since:
- 6.2
- Author:
- O. Kerpershoek, F. van der Meer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getId()
This method returns the ID of the current Object from the map.int
getScore()
This method returns the score of the current Object from the map.boolean
hasNext()
This method returns a boolean indicating if another item is available in the map.boolean
next()
This method returns a boolean indicating if another item is available in the map.
-
Constructor Details
-
Iterator
-
-
Method Details
-
next
public boolean next()This method returns a boolean indicating if another item is available in the map. Invoking this method will cause the iterator to skip to the next element.- Returns:
- a boolean indicating if another item is available in the map.
-
hasNext
public boolean hasNext()This method returns a boolean indicating if another item is available in the map.- Returns:
- a boolean indicating if another item is available in the map.
-
getId
public int getId()This method returns the ID of the current Object from the map.- Returns:
- the ID of the current Object from the map.
-
getScore
public int getScore()This method returns the score of the current Object from the map.- Returns:
- the score of the current Object from the map.
-