net.sf.jga.util
Class ComparableComparator<T>
public
class
ComparableComparator<T extends Comparable>
extends Object
implements Comparator<T>
Comparator used for objects that extend Comparable. It delegates to the
object's Comparable interface of the object whose class is "least"
derived; ie, if the first object's class is a subclass of the second object's
class, then the second object's comparable interface is used; otherwise the
first object's comparable interface is used.
Author: David A. Hall
public int compare(
T x,
T y)