Package com.jcabi.immutable
Class ArrayComparator.Neutral<T>
- java.lang.Object
-
- com.jcabi.immutable.ArrayComparator.Neutral<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.Neutral<T> extends Object implements ArrayComparator<T>, Serializable
Neutral comparator (never compares).- 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 Neutral()
-
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
-
-