public class NoopClusterModelStatsComparator extends Object implements ClusterModelStatsComparator
Constructor and Description |
---|
NoopClusterModelStatsComparator(String goalName) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public NoopClusterModelStatsComparator(String goalName)
public int compare(ClusterModelStats stats1, ClusterModelStats stats2)
ClusterModelStatsComparator
compare
in interface ClusterModelStatsComparator
compare
in interface Comparator<ClusterModelStats>
stats1
- the first statsstats2
- the second statspublic String explainLastComparison()
ClusterModelStatsComparator
explainLastComparison
in interface ClusterModelStatsComparator