Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## umontreal.iro.lecuyer.collections
Class DescendingOrderComparator<T extends Comparable<? super T>>

    java.lang.Object
      umontreal.iro.lecuyer.collections.DescendingOrderComparator<T>

Type Parameters:
  `T` -

All Implemented Interfaces:
  Comparator<T>

    public class DescendingOrderComparator<T extends Comparable<? super T>>

extends Object
implements Comparator<T>

Represents a comparator sorting objects in descending natural order. More specifically, when comparing two objects, this comparator returns the result of `Comparable.compareTo(Object)` multiplied by -1.

Constructor Summary
`DescendingOrderComparator()`

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

### DescendingOrderComparator

    public DescendingOrderComparator()

Method Detail

### compare

    public int compare(T o1,
                       T o2)

  Specified by:
    `compare` in interface `Comparator<T extends Comparable<? super T>>`

Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

To submit a bug or ask questions, send an e-mail to Richard Simard.