KtComparatorExtensions<T> extension
- on
-
- Comparator<
T>
- Comparator<
Methods
-
then(
Comparator< T> comparator) → Comparator<T> -
Available on Comparator<
Combines this Comparator and the given comparator such that the latter is applied only when the former considered values equal.T> , provided by the KtComparatorExtensions extension -
thenBy(
Comparable selector(T)) → Comparator< T> -
Available on Comparator<
Combines this Comparator and the given selector such that the latter is applied only when the former considered values equal.T> , provided by the KtComparatorExtensions extension -
thenByDescending(
Comparable selector(T)) → Comparator< T> -
Available on Comparator<
Combines this Comparator and the given selector such that the latter is applied only when the former considered values equal. The provided selector is used for sorting in reverse.T> , provided by the KtComparatorExtensions extension -
thenDescending(
Comparator< T> comparator) → Comparator<T> -
Available on Comparator<
Combines this Comparator and the given comparator such that the latter is applied only when the former considered values equal. The provided comparator is applied in reverse order.T> , provided by the KtComparatorExtensions extension