ComparatorChaining<T> extension

A Comparator extension adding then method to allow chaining the comparators together.

on

Methods

then(Comparator<T> nextComparator) Comparator<T>

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

Returns a new Comparator combining this one and the given nextComparator in the lexicographical order.