Package com.jcabi.immutable
Class ArrayComparator.Reverse<T extends Comparable<T>>
- java.lang.Object
-
- com.jcabi.immutable.ArrayComparator.Reverse<T>
-
- Type Parameters:
T
- Type of argument
- All Implemented Interfaces:
ArrayComparator<T>
,Serializable
,Comparator<T>
- Enclosing interface:
- ArrayComparator<T>
@Immutable public static final class ArrayComparator.Reverse<T extends Comparable<T>> extends Object implements ArrayComparator<T>, Serializable
Reverse comparator.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.immutable.ArrayComparator
ArrayComparator.Default<T>, ArrayComparator.Neutral<T>, ArrayComparator.Reverse<T extends Comparable<T>>
-
-
Constructor Summary
Constructors Constructor Description Reverse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T left, T right)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(T left, T right)
- Specified by:
compare
in interfaceComparator<T extends Comparable<T>>
-
-