ResultOfComparator<R> extension

Extension on Comparator to order elements by a key extraction function.

on

Methods

keyOf<T>(Map1<T, R> function) → Comparator<T>

Available on Comparator<R>, provided by the ResultOfComparator extension

Returns a Comparator of type T that extracts a sort key of type R.
onResultOf<T>(Map1<T, R> function) → Comparator<T>

Available on Comparator<R>, provided by the ResultOfComparator extension

Returns a Comparator of type T that extracts a sort key of type R.