org.erights.e.elib.tables
Class SimpleCompFunc
java.lang.Object
|
+--org.erights.e.elib.tables.SimpleCompFunc
- All Implemented Interfaces:
- CompFunc
- class SimpleCompFunc
- extends Object
- implements CompFunc
Compares using the natural ordering
Method Summary |
double |
run(Object a,
Object b)
E.calls with "compareTo" and the zero tests to determine
whether to return 0.0, -1.0, 1.0, or NaN. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THE_ONE
public static final CompFunc THE_ONE
- The canonical instance
SimpleCompFunc
private SimpleCompFunc()
run
public double run(Object a,
Object b)
- E.calls with "compareTo" and the zero tests to determine
whether to return 0.0, -1.0, 1.0, or NaN.
- Specified by:
run
in interface CompFunc
comments?