public class EvaluationStatisticsComparator extends Object implements Comparator<EvaluationStatistics>, Serializable
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_KEYS
the default keys.
|
protected String[] |
m_Keys
the keys to use for comparison.
|
Constructor and Description |
---|
EvaluationStatisticsComparator()
Initializes the comparator with the default keys.
|
EvaluationStatisticsComparator(String[] keys)
Initializes the comparator with the specified keys.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(EvaluationStatistics o1,
EvaluationStatistics o2)
Compares the two statistics.
|
String |
toString()
Returns the keys as string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final String[] DEFAULT_KEYS
protected String[] m_Keys
public EvaluationStatisticsComparator()
DEFAULT_KEYS
public EvaluationStatisticsComparator(String[] keys)
keys
- the keys to usepublic int compare(EvaluationStatistics o1, EvaluationStatistics o2)
compare
in interface Comparator<EvaluationStatistics>
o1
- the first statso2
- the second statsCopyright © 2017. All Rights Reserved.