ComparatorExtension<T> extension

Extensions on comparator functions.

on

Properties

inverse Comparator<T>

Available on Comparator<T>, provided by the ComparatorExtension extension

The inverse ordering of this comparator.
no setter

Methods

compareBy<R>(T keyOf(R)) Comparator<R>

Available on Comparator<T>, provided by the ComparatorExtension extension

Makes a comparator on R values using this comparator.
then(Comparator<T> tieBreaker) Comparator<T>

Available on Comparator<T>, provided by the ComparatorExtension extension

Combine comparators sequentially.