|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectknockabout.search.MoveComparator
Compare CompiledMove's according to their estimated utility
Constructor Summary | |
MoveComparator(int order)
|
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Object o1, o2 should be CompiledMove objects |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Constructor Detail |
public MoveComparator(int order)
order
- 1 if the user want normal order, -1 for reverse orderMethod Detail |
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |