open class ComparableComparator<T : Comparable<T>> : Comparator<T>
Comparator that adapts Comparables to the Comparator interface. Mainly for internal use in other Comparators, when supposed to work on Comparables.
Author
Keith Donald
Since
1.2.2
See Also
Comparable
ComparableComparator()
Comparator that adapts Comparables to the Comparator interface. Mainly for internal use in other Comparators, when supposed to work on Comparables. |
static val INSTANCE: ComparableComparator<Comparable<*>>
A shared instance of this default comparator |
open fun compare(o1: T, o2: T): Int |