2.17.2: 2011-06-17

net.sf.basedb.util
Class ComparableComparator<T extends Comparable<T>>

java.lang.Object
  extended by 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) $

Constructor Summary
ComparableComparator()
           
 
Method Summary
 int compare(T o1, T o2)
           
 
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

ComparableComparator

public ComparableComparator()
Method Detail

compare

public int compare(T o1,
                   T o2)
Specified by:
compare in interface Comparator<T extends Comparable<T>>

2.17.2: 2011-06-17