maxOf
fun <T : Comparable<T>> maxOf(a: T, b: T): T
Returns the greater of two values. If values are equal, returns the first one.
Returns the greater of two values.
fun <T> maxOf(
a: T,
b: T,
c: T,
comparator: Comparator<in T>
): T
Returns the greater of three values according to the order specified by the given comparator.
fun <T> maxOf(a: T, b: T, comparator: Comparator<in T>): T
Returns the greater of two values according to the order specified by the given comparator. If values are equal, returns the first one.
Returns the greater of two values.
Returns the greater of three values.