W3cubDocs

/Kotlin

max

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
@DeprecatedSinceKotlin("1.4") fun Array<out Double>.max(): Double?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun Array<out Float>.max(): Float?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun <T : Comparable<T>> Array<out T>.max(): T?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun ByteArray.max(): Byte?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun ShortArray.max(): Short?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun IntArray.max(): Int?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun LongArray.max(): Long?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun FloatArray.max(): Float?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun DoubleArray.max(): Double?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun CharArray.max(): Char?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun Iterable<Double>.max(): Double?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun Iterable<Float>.max(): Float?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") fun <T : Comparable<T>> Iterable<T>.max(): T?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UIntArray.max(): UInt?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun ULongArray.max(): ULong?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UByteArray.max(): UByte?
Deprecated: Use maxOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UShortArray.max(): UShort?
Deprecated: Use maxOrNull instead.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/max.html