public static interface Goal.ClusterModelStatsComparator extends Comparator<ClusterModelStats>, Serializable
Modifier and Type | Method and Description |
---|---|
int |
compare(ClusterModelStats stats1,
ClusterModelStats stats2)
Compare two cluster model stats and determine which stats is preferred.
|
String |
explainLastComparison()
This is a method to get the reason for the last comparison.
|
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
int compare(ClusterModelStats stats1, ClusterModelStats stats2)
compare
in interface Comparator<ClusterModelStats>
stats1
- the first statsstats2
- the second statsString explainLastComparison()