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


Field Summary
static CompFunc THE_ONE
          The canonical instance
 
Constructor Summary
private SimpleCompFunc()
           
 
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
 

Field Detail

THE_ONE

public static final CompFunc THE_ONE
The canonical instance

Constructor Detail

SimpleCompFunc

private SimpleCompFunc()
Method Detail

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?