ComparatorExtension<T> extension Null safety

Extensions on comparator functions.

on

Properties

inverse Comparator<T>
The inverse ordering of this comparator.
read-only

Methods

compareBy<R>(T keyOf(R)) Comparator<R>
Makes a comparator on R values using this comparator. [...]
then(Comparator<T> tieBreaker) Comparator<T>
Combine comparators sequentially. [...]