delegateComparator<T, R extends Comparable<R>> function

  1. @Deprecated('Use `keyOf` instead.')
Comparator<T> delegateComparator<T, R extends Comparable<R>>(
  1. R transformation(
    1. 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);