|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.meta.multisearch.PerformanceComparator
public class PerformanceComparator
A concrete Comparator for the Performance class.
Performance,
Serialized Form| Field Summary | |
|---|---|
protected int |
m_Evaluation
the performance measure to use for comparison. |
| Constructor Summary | |
|---|---|
PerformanceComparator(int evaluation)
initializes the comparator with the given performance measure. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int m_Evaluation
MultiSearch.TAGS_EVALUATION| Constructor Detail |
|---|
public PerformanceComparator(int evaluation)
evaluation - the performance measure to useMultiSearch.TAGS_EVALUATION| Method Detail |
|---|
public int getEvaluation()
MultiSearch.TAGS_EVALUATION
public int compare(Performance o1,
Performance o2)
compare in interface Comparator<Performance>o1 - the first performanceo2 - the second performance
public boolean equals(Object obj)
equals in interface Comparator<Performance>equals in class Objectobj - the object to compare with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||