net.sf.basedb.util
Class ComparableComparator<T extends Comparable<T>>
java.lang.Object
net.sf.basedb.util.ComparableComparator<T>
- All Implemented Interfaces:
- Comparator<T>
public class ComparableComparator<T extends Comparable<T>>
- extends Object
- implements Comparator<T>
A comparator implemenation for any Comparable objects.
- Since:
- 2.17
- Author:
- Nicklas
- Last modified
- $Date: 2011-02-16 14:49:40 +0100 (Wed, 16 Feb 2011) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComparableComparator
public ComparableComparator()
compare
public int compare(T o1,
T o2)
- Specified by:
compare
in interface Comparator<T extends Comparable<T>>