Comparator
Since Kotlin
1.1Functions
Returns a comparator that imposes the reverse ordering of this comparator.
Returns a comparator that imposes the reverse ordering of this comparator.
Combines this comparator and the given comparator such that the latter is applied only when the former considered values equal.
Combines this comparator and the given comparator such that the latter is applied only when the former considered values equal.
Creates a comparator comparing values after the primary comparator defined them equal. It uses the function to transform value to a Comparable instance for comparison.
Creates a comparator comparing values after the primary comparator defined them equal. It uses the selector function to transform values and then compares them with the given comparator.
Creates a comparator comparing values after the primary comparator defined them equal. It uses the function to transform value to a Comparable instance for comparison.
Creates a comparator comparing values after the primary comparator defined them equal. It uses the selector function to transform values and then compares them with the given comparator.
Creates a descending comparator using the primary comparator and the function to transform value to a Comparable instance for comparison.
Creates a descending comparator comparing values after the primary comparator defined them equal. It uses the selector function to transform values and then compares them with the given comparator.
Creates a descending comparator using the primary comparator and the function to transform value to a Comparable instance for comparison.
Creates a descending comparator comparing values after the primary comparator defined them equal. It uses the selector function to transform values and then compares them with the given comparator.
Creates a comparator using the primary comparator and function to calculate a result of comparison.
Creates a comparator using the primary comparator and function to calculate a result of comparison.
Combines this comparator and the given comparator such that the latter is applied only when the former considered values equal.
Combines this comparator and the given comparator such that the latter is applied only when the former considered values equal.