Package com.macrofocus
Class ReverseComparator<T>
java.lang.Object
com.macrofocus.ReverseComparator<T>
- All Implemented Interfaces:
Comparator<T>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ReverseComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-
equals
- Specified by:
equals
in interfaceComparator<T>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode() -
reversed
- Specified by:
reversed
in interfaceComparator<T>
-