public static <T extends Comparable<? super T>> Comparator<T> reverseOrder ()

Returns a comparator that imposes the reverse of the natural ordering.

The returned comparator is serializable and throws NullPointerException when comparing null.

Parameters:
<T>    the Comparable type of element to be compared

Returns:  a comparator that imposes the reverse of the natural ordering on Comparable objects.

See also:
Comparable

Since:  1.8