maxOf

fun <T> maxOf(a: T, b: T, c: T, comparator: Comparator<in T>): T(source)

Returns the greater of three values according to the order specified by the given comparator.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.1

fun <T> maxOf(a: T, b: T, comparator: Comparator<in T>): T(source)

Returns the greater of two values according to the order specified by the given comparator.

If values are equal, returns the first one.

Since Kotlin

1.1

fun <T> maxOf(a: T, vararg other: T, comparator: Comparator<in T>): T(source)

Returns the greater of the given values according to the order specified by the given comparator.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.4

fun maxOf(a: UInt, b: UInt): UInt(source)
fun maxOf(a: ULong, b: ULong): ULong(source)
fun maxOf(a: UByte, b: UByte): UByte(source)

Returns the greater of two values.

Since Kotlin

1.5

inline fun maxOf(a: UInt, b: UInt, c: UInt): UInt(source)
inline fun maxOf(a: ULong, b: ULong, c: ULong): ULong(source)
inline fun maxOf(a: UByte, b: UByte, c: UByte): UByte(source)
inline fun maxOf(a: UShort, b: UShort, c: UShort): UShort(source)

Returns the greater of three values.

Since Kotlin

1.5

expect fun maxOf(a: Byte, vararg other: Byte): Byte(source)
expect fun maxOf(a: Short, vararg other: Short): Short(source)
expect fun maxOf(a: Int, vararg other: Int): Int(source)
expect fun maxOf(a: Long, vararg other: Long): Long(source)

Returns the greater of the given values.

Since Kotlin

1.4

expect fun <T : Comparable<T>> maxOf(a: T, b: T): T(source)

Returns the greater of two values.

If values are equal, returns the first one.

Since Kotlin

1.1

expect inline fun maxOf(a: Byte, b: Byte): Byte(source)
expect inline fun maxOf(a: Short, b: Short): Short(source)
expect inline fun maxOf(a: Int, b: Int): Int(source)
expect inline fun maxOf(a: Long, b: Long): Long(source)

Returns the greater of two values.

Since Kotlin

1.1

expect inline fun maxOf(a: Float, b: Float): Float(source)
expect inline fun maxOf(a: Double, b: Double): Double(source)

Returns the greater of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.1

expect fun <T : Comparable<T>> maxOf(a: T, b: T, c: T): T(source)

Returns the greater of three values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.1

expect inline fun maxOf(a: Byte, b: Byte, c: Byte): Byte(source)
expect inline fun maxOf(a: Short, b: Short, c: Short): Short(source)
expect inline fun maxOf(a: Int, b: Int, c: Int): Int(source)
expect inline fun maxOf(a: Long, b: Long, c: Long): Long(source)

Returns the greater of three values.

Since Kotlin

1.1

expect inline fun maxOf(a: Float, b: Float, c: Float): Float(source)
expect inline fun maxOf(a: Double, b: Double, c: Double): Double(source)

Returns the greater of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.1

expect fun <T : Comparable<T>> maxOf(a: T, vararg other: T): T(source)

Returns the greater of the given values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.4

expect fun maxOf(a: Float, vararg other: Float): Float(source)
expect fun maxOf(a: Double, vararg other: Double): Double(source)

Returns the greater of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.4
actual fun <T : Comparable<T>> maxOf(a: T, b: T): T(source)

Returns the greater of two values.

If values are equal, returns the first one.

Since Kotlin

1.1

actual inline fun maxOf(a: Byte, b: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long): Long(source)

Returns the greater of two values.

Since Kotlin

1.1

actual inline fun maxOf(a: Float, b: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double): Double(source)

Returns the greater of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.1

actual fun <T : Comparable<T>> maxOf(a: T, b: T, c: T): T(source)

Returns the greater of three values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.1

actual inline fun maxOf(a: Byte, b: Byte, c: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short, c: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int, c: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long, c: Long): Long(source)

Returns the greater of three values.

Since Kotlin

1.1

actual inline fun maxOf(a: Float, b: Float, c: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double, c: Double): Double(source)

Returns the greater of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.1

actual fun <T : Comparable<T>> maxOf(a: T, vararg other: T): T(source)

Returns the greater of the given values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.4

actual fun maxOf(a: Byte, vararg other: Byte): Byte(source)
actual fun maxOf(a: Short, vararg other: Short): Short(source)
actual fun maxOf(a: Int, vararg other: Int): Int(source)
actual fun maxOf(a: Long, vararg other: Long): Long(source)

Returns the greater of the given values.

Since Kotlin

1.4

actual fun maxOf(a: Float, vararg other: Float): Float(source)
actual fun maxOf(a: Double, vararg other: Double): Double(source)

Returns the greater of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.4
actual fun <T : Comparable<T>> maxOf(a: T, b: T): T(source)

Returns the greater of two values.

If values are equal, returns the first one.

Since Kotlin

1.1

actual inline fun maxOf(a: Byte, b: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long): Long(source)

Returns the greater of two values.

Since Kotlin

1.1

actual inline fun maxOf(a: Float, b: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double): Double(source)

Returns the greater of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.1

actual fun <T : Comparable<T>> maxOf(a: T, b: T, c: T): T(source)

Returns the greater of three values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.1

actual inline fun maxOf(a: Byte, b: Byte, c: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short, c: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int, c: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long, c: Long): Long(source)

Returns the greater of three values.

Since Kotlin

1.1

actual inline fun maxOf(a: Float, b: Float, c: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double, c: Double): Double(source)

Returns the greater of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.1

actual fun <T : Comparable<T>> maxOf(a: T, vararg other: T): T(source)

Returns the greater of the given values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.4

actual fun maxOf(a: Byte, vararg other: Byte): Byte(source)
actual fun maxOf(a: Short, vararg other: Short): Short(source)
actual fun maxOf(a: Int, vararg other: Int): Int(source)
actual fun maxOf(a: Long, vararg other: Long): Long(source)

Returns the greater of the given values.

Since Kotlin

1.4

actual fun maxOf(a: Float, vararg other: Float): Float(source)
actual fun maxOf(a: Double, vararg other: Double): Double(source)

Returns the greater of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.4
actual fun <T : Comparable<T>> maxOf(a: T, b: T): T(source)

Returns the greater of two values.

If values are equal, returns the first one.

Since Kotlin

1.3

actual inline fun maxOf(a: Byte, b: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long): Long(source)

Returns the greater of two values.

Since Kotlin

1.3

actual inline fun maxOf(a: Float, b: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double): Double(source)

Returns the greater of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.3

actual fun <T : Comparable<T>> maxOf(a: T, b: T, c: T): T(source)

Returns the greater of three values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.3

actual inline fun maxOf(a: Byte, b: Byte, c: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short, c: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int, c: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long, c: Long): Long(source)

Returns the greater of three values.

Since Kotlin

1.3

actual inline fun maxOf(a: Float, b: Float, c: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double, c: Double): Double(source)

Returns the greater of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.3

actual fun <T : Comparable<T>> maxOf(a: T, vararg other: T): T(source)

Returns the greater of the given values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.4

actual fun maxOf(a: Byte, vararg other: Byte): Byte(source)
actual fun maxOf(a: Short, vararg other: Short): Short(source)
actual fun maxOf(a: Int, vararg other: Int): Int(source)
actual fun maxOf(a: Long, vararg other: Long): Long(source)

Returns the greater of the given values.

Since Kotlin

1.4

actual fun maxOf(a: Float, vararg other: Float): Float(source)
actual fun maxOf(a: Double, vararg other: Double): Double(source)

Returns the greater of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.4
actual fun <T : Comparable<T>> maxOf(a: T, b: T): T(source)

Returns the greater of two values.

If values are equal, returns the first one.

Since Kotlin

1.8

actual inline fun maxOf(a: Byte, b: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long): Long(source)

Returns the greater of two values.

Since Kotlin

1.8

actual inline fun maxOf(a: Float, b: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double): Double(source)

Returns the greater of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.8

actual fun <T : Comparable<T>> maxOf(a: T, b: T, c: T): T(source)

Returns the greater of three values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.8

actual inline fun maxOf(a: Byte, b: Byte, c: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short, c: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int, c: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long, c: Long): Long(source)

Returns the greater of three values.

Since Kotlin

1.8

actual inline fun maxOf(a: Float, b: Float, c: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double, c: Double): Double(source)

Returns the greater of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.8

actual fun <T : Comparable<T>> maxOf(a: T, vararg other: T): T(source)

Returns the greater of the given values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.8

actual fun maxOf(a: Byte, vararg other: Byte): Byte(source)
actual fun maxOf(a: Short, vararg other: Short): Short(source)
actual fun maxOf(a: Int, vararg other: Int): Int(source)
actual fun maxOf(a: Long, vararg other: Long): Long(source)

Returns the greater of the given values.

Since Kotlin

1.8

actual fun maxOf(a: Float, vararg other: Float): Float(source)
actual fun maxOf(a: Double, vararg other: Double): Double(source)

Returns the greater of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.8
actual fun <T : Comparable<T>> maxOf(a: T, b: T): T(source)

Returns the greater of two values.

If values are equal, returns the first one.

Since Kotlin

1.8

actual inline fun maxOf(a: Byte, b: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long): Long(source)

Returns the greater of two values.

Since Kotlin

1.8

actual inline fun maxOf(a: Float, b: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double): Double(source)

Returns the greater of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.8

actual fun <T : Comparable<T>> maxOf(a: T, b: T, c: T): T(source)

Returns the greater of three values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.8

actual inline fun maxOf(a: Byte, b: Byte, c: Byte): Byte(source)
actual inline fun maxOf(a: Short, b: Short, c: Short): Short(source)
actual inline fun maxOf(a: Int, b: Int, c: Int): Int(source)
actual inline fun maxOf(a: Long, b: Long, c: Long): Long(source)

Returns the greater of three values.

Since Kotlin

1.8

actual inline fun maxOf(a: Float, b: Float, c: Float): Float(source)
actual inline fun maxOf(a: Double, b: Double, c: Double): Double(source)

Returns the greater of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.8

actual fun <T : Comparable<T>> maxOf(a: T, vararg other: T): T(source)

Returns the greater of the given values.

If there are multiple equal maximal values, returns the first of them.

Since Kotlin

1.8

actual fun maxOf(a: Byte, vararg other: Byte): Byte(source)
actual fun maxOf(a: Short, vararg other: Short): Short(source)
actual fun maxOf(a: Int, vararg other: Int): Int(source)
actual fun maxOf(a: Long, vararg other: Long): Long(source)

Returns the greater of the given values.

Since Kotlin

1.8

actual fun maxOf(a: Float, vararg other: Float): Float(source)
actual fun maxOf(a: Double, vararg other: Double): Double(source)

Returns the greater of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.8