Interface IEntryWithComparableNumericTuple
- All Known Implementing Classes:
CountryEntry
,WeatherEntry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface providing a contract for an entry that can produce a numeric score
for comparison purposes.
Implementations of this interface provide a single numeric value,
which can be used in analytical operations such as
finding minimum or maximum values across a collection of entries.
This score must make the Object comparable via the Comparable
interface.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the numeric score representing this entry's "best match" value.
-
Method Details
-
getBestMatchScore
double getBestMatchScore()Returns the numeric score representing this entry's "best match" value.This score should be used for comparisons when determining optimal entries according to a given
Comparator
.- Returns:
- the numeric score for this entry
-