W3cubDocs

/Kotlin

maxWith

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
@DeprecatedSinceKotlin("1.4") fun <T> Array<out T>.maxWith(
    comparator: Comparator<in T>
): T?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun ByteArray.maxWith(
    comparator: Comparator<in Byte>
): Byte?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun ShortArray.maxWith(
    comparator: Comparator<in Short>
): Short?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun IntArray.maxWith(
    comparator: Comparator<in Int>
): Int?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun LongArray.maxWith(
    comparator: Comparator<in Long>
): Long?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun FloatArray.maxWith(
    comparator: Comparator<in Float>
): Float?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun DoubleArray.maxWith(
    comparator: Comparator<in Double>
): Double?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun BooleanArray.maxWith(
    comparator: Comparator<in Boolean>
): Boolean?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun CharArray.maxWith(
    comparator: Comparator<in Char>
): Char?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun <T> Iterable<T>.maxWith(
    comparator: Comparator<in T>
): T?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") fun <K, V> Map<out K, V>.maxWith(
    comparator: Comparator<in Entry<K, V>>
): Entry<K, V>?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UIntArray.maxWith(
    comparator: Comparator<in UInt>
): UInt?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun ULongArray.maxWith(
    comparator: Comparator<in ULong>
): ULong?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UByteArray.maxWith(
    comparator: Comparator<in UByte>
): UByte?
Deprecated: Use maxWithOrNull instead.
@DeprecatedSinceKotlin("1.4") @ExperimentalUnsignedTypes fun UShortArray.maxWith(
    comparator: Comparator<in UShort>
): UShort?
Deprecated: Use maxWithOrNull 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-with.html