delegateComparator<T, R extends Comparable<R> > function
- @Deprecated('Use `keyOf` instead.')
- R transformation(
- T value
Creates a comparator that compares values of type T
but delegates the
decision to a Comparable<R> with the provided transformation
.
Implementation
@Deprecated('Use `keyOf` instead.')
Comparator<T> delegateComparator<T, R extends Comparable<R>>(
R Function(T value) transformation,
) => keyOf<T, R>(transformation);