fun <T : Comparable<T>> maxOf(a: T, b: T): T
Returns the greater of two values. If values are equal, returns the first one.
fun maxOf(a: Byte, b: Byte): Byte
fun maxOf(a: Short, b: Short): Short
fun maxOf(a: Int, b: Int): Int
fun maxOf(a: Long, b: Long): Long
fun maxOf(a: Float, b: Float): Float
fun maxOf(a: Double, b: Double): Double
Returns the greater of two values.
fun <T : Comparable<T>> maxOf(a: T, b: T, c: T): T
fun maxOf(a: Byte, b: Byte, c: Byte): Byte
fun maxOf(a: Short, b: Short, c: Short): Short
fun maxOf(a: Int, b: Int, c: Int): Int
fun maxOf(a: Long, b: Long, c: Long): Long
fun maxOf(a: Float, b: Float, c: Float): Float
fun maxOf(a: Double, b: Double, c: Double): Double
Returns the greater of three 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.
@ExperimentalUnsignedTypes fun maxOf(a: UInt, b: UInt): UInt
@ExperimentalUnsignedTypes fun maxOf( a: ULong, b: ULong ): ULong
@ExperimentalUnsignedTypes fun maxOf( a: UByte, b: UByte ): UByte
@ExperimentalUnsignedTypes fun maxOf( a: UShort, b: UShort ): UShort
Returns the greater of two values.
@ExperimentalUnsignedTypes fun maxOf( a: UInt, b: UInt, c: UInt ): UInt
@ExperimentalUnsignedTypes fun maxOf( a: ULong, b: ULong, c: ULong ): ULong
@ExperimentalUnsignedTypes fun maxOf( a: UByte, b: UByte, c: UByte ): UByte
@ExperimentalUnsignedTypes fun maxOf( a: UShort, b: UShort, c: UShort ): UShort
Returns the greater of three values.
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.comparisons/max-of.html