git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130616 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Morgan James Delagrange 2002-02-28 18:06:39 +00:00
parent 361f3483b5
commit c095f1aac1
1 changed files with 4 additions and 2 deletions

View File

@ -63,10 +63,12 @@ import java.lang.Comparable;
* Comparable, or if they are null.
* Throws ClassCastException if the compareTo of both
* objects do not provide an inverse result of each other
* as per the Comparable javadoc.
* as per the Comparable javadoc. This Comparator is useful, for example,
* for enforcing the natural order in custom implementations
* of SortedSet and SortedMap.
*
* @author bayard@generationjava.com
* @version $Id: ComparableComparator.java,v 1.1 2002/02/26 22:42:31 morgand Exp $
* @version $Id: ComparableComparator.java,v 1.2 2002/02/28 18:06:39 morgand Exp $
*/
public class ComparableComparator implements Comparator {