public class PerformanceComparator extends Object implements Comparator<Performance>, Serializable
Performance,
Serialized Form| Constructor and Description |
|---|
PerformanceComparator(int evaluation,
AbstractEvaluationMetrics metrics)
initializes the comparator with the given performance measure.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Performance o1,
Performance o2)
Compares its two arguments for order.
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this Comparator.
|
int |
getEvaluation()
returns the performance measure that's used to compare the objects.
|
AbstractEvaluationMetrics |
getMetrics()
Returns the metrics in use.
|
getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic PerformanceComparator(int evaluation,
AbstractEvaluationMetrics metrics)
evaluation - the performance measure to usemetrics - the metrics to usepublic int getEvaluation()
public AbstractEvaluationMetrics getMetrics()
public int compare(Performance o1, Performance o2)
compare in interface Comparator<Performance>o1 - the first performanceo2 - the second performancepublic boolean equals(Object obj)
equals in interface Comparator<Performance>equals in class Objectobj - the object to compare withCopyright © 2017 University of Waikato, Hamilton, NZ. All Rights Reserved.