Package com.akamai.edgegrid.signer
Class NullSafeComparator<T extends Comparable<T>>
java.lang.Object
com.akamai.edgegrid.signer.NullSafeComparator<T>
- Type Parameters:
T
- any type that implementsComparable
- All Implemented Interfaces:
Comparator<T>
This is a null-safe
Comparator
implementation to make the classes Comparable
implementation simpler.-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NullSafeComparator
public NullSafeComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T extends Comparable<T>>
-