|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.apache.commons.collections.comparators.ReverseComparator
public class ReverseComparator
Reverses the order of another comparator.
| Constructor Summary | |
|---|---|
ReverseComparator()
Creates a comparator that compares objects based on the inverse of their natural ordering. |
|
ReverseComparator(java.util.Comparator comparator)
Creates a reverse comparator that inverts the comparison of the passed in comparator. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object 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 |
|---|
public ReverseComparator()
Collections.reverseOrder()public ReverseComparator(java.util.Comparator comparator)
comparator - Comparator to reverse| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparator
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||