# Class ReverseComparator<T>

java.lang.Object
com.macrofocus.ReverseComparator<T>

All Implemented Interfaces:
  `Comparator<T>`

public class ReverseComparator<T> extends Object implements Comparator<T>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ReverseComparator(Comparator<T> cmp)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(T t1, T t2)`
  `boolean`
  `equals(Object o)`
  `int`
  `hashCode()`
  `Comparator<T>`
  `reversed()`

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface Comparator

  `thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- ## Constructor Details

  - ### ReverseComparator

    public ReverseComparator(Comparator<T> cmp)

- ## Method Details

  - ### compare

    public int compare(T t1, T t2)
    Specified by:
      `compare` in interface `Comparator<T>`

  - ### equals

    public boolean equals(Object o)
    Specified by:
      `equals` in interface `Comparator<T>`
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### reversed

    public Comparator<T> reversed()
    Specified by:
      `reversed` in interface `Comparator<T>`