javadocs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f62b8ed900
commit
79b299a70c
|
@ -62,7 +62,7 @@ import java.util.Comparator;
|
|||
*
|
||||
* @author bayard@generationjava.com
|
||||
* @author <a href="mailto:mas@apache.org">Michael A. Smith</a>
|
||||
* @version $Id: ReverseComparator.java,v 1.6 2002/03/20 00:25:37 mas Exp $
|
||||
* @version $Id: ReverseComparator.java,v 1.7 2002/03/20 17:09:16 morgand Exp $
|
||||
*/
|
||||
public class ReverseComparator implements Comparator,Serializable {
|
||||
|
||||
|
@ -70,7 +70,11 @@ public class ReverseComparator implements Comparator,Serializable {
|
|||
|
||||
/**
|
||||
* Creates a comparator that compares objects based on the inverse of their
|
||||
* natural ordering.
|
||||
* natural ordering. Using this Constructor will create a ReverseComparator
|
||||
* that is functionaly identical to the Comparator returned by
|
||||
* java.util.Collections.<b>reverseOrder()</b>.
|
||||
*
|
||||
* @see java.util.Collections#reverseOrder()
|
||||
*/
|
||||
public ReverseComparator() {
|
||||
this(null);
|
||||
|
@ -78,7 +82,12 @@ public class ReverseComparator implements Comparator,Serializable {
|
|||
|
||||
/**
|
||||
* Creates a reverse comparator that inverts the comparison
|
||||
* of the passed in comparator.
|
||||
* of the passed in comparator. If you pass in a null,
|
||||
* the ReverseComparator defaults to reversing the
|
||||
* natural order, as per
|
||||
* java.util.Collections.<b>reverseOrder()</b>.
|
||||
*
|
||||
* @param comparator Comparator to reverse
|
||||
*/
|
||||
public ReverseComparator(Comparator comparator) {
|
||||
if(comparator != null) {
|
||||
|
|
Loading…
Reference in New Issue