maxWith
@JvmName
(
"maxWithOrThrow"
)
fun
<
T
>
Array
<
out
T
>
.
maxWith
(
comparator
:
Comparator
<
in
T
>
)
:
T
(source)
@JvmName
(
"maxWithOrThrow"
)
fun
ByteArray
.
maxWith
(
comparator
:
Comparator
<
in
Byte
>
)
:
Byte
(source)
@JvmName
(
"maxWithOrThrow"
)
fun
ShortArray
.
maxWith
(
comparator
:
Comparator
<
in
Short
>
)
:
Short
(source)
@JvmName
(
"maxWithOrThrow"
)
fun
IntArray
.
maxWith
(
comparator
:
Comparator
<
in
Int
>
)
:
Int
(source)
@JvmName
(
"maxWithOrThrow"
)
fun
LongArray
.
maxWith
(
comparator
:
Comparator
<
in
Long
>
)
:
Long
(source)
@JvmName
(
"maxWithOrThrow"
)
fun
FloatArray
.
maxWith
(
comparator
:
Comparator
<
in
Float
>
)
:
Float
(source)
@JvmName
(
"maxWithOrThrow"
)
fun
DoubleArray
.
maxWith
(
comparator
:
Comparator
<
in
Double
>
)
:
Double
(source)
@JvmName
(
"maxWithOrThrow"
)
fun
BooleanArray
.
maxWith
(
comparator
:
Comparator
<
in
Boolean
>
)
:
Boolean
(source)
@JvmName
(
"maxWithOrThrow"
)
fun
CharArray
.
maxWith
(
comparator
:
Comparator
<
in
Char
>
)
:
Char
(source)
@JvmName
(
"maxWithOrThrow-U"
)
@ExperimentalUnsignedTypes
fun
UIntArray
.
maxWith
(
comparator
:
Comparator
<
in
UInt
>
)
:
UInt
(source)
@JvmName
(
"maxWithOrThrow-U"
)
@ExperimentalUnsignedTypes
fun
ULongArray
.
maxWith
(
comparator
:
Comparator
<
in
ULong
>
)
:
ULong
(source)
@JvmName
(
"maxWithOrThrow-U"
)
@ExperimentalUnsignedTypes
fun
UByteArray
.
maxWith
(
comparator
:
Comparator
<
in
UByte
>
)
:
UByte
(source)
@JvmName
(
"maxWithOrThrow-U"
)
@ExperimentalUnsignedTypes
fun
UShortArray
.
maxWith
(
comparator
:
Comparator
<
in
UShort
>
)
:
UShort
(source)
Returns the first element having the largest value according to the provided comparator .
Exceptions
@JvmName
(
"maxWithOrThrow"
)
fun
<
T
>
Iterable
<
T
>
.
maxWith
(
comparator
:
Comparator
<
in
T
>
)
:
T
(source)
Returns the first element having the largest value according to the provided comparator .
Exceptions
@JvmName
(
"maxWithOrThrow"
)
fun
<
K
,
V
>
Map
<
out
K
,
V
>
.
maxWith
(
comparator
:
Comparator
<
in
Entry
<
K
,
V
>
>
)
:
Entry
<
K
,
V
>
(source)
Returns the first entry having the largest value according to the provided comparator .
Exceptions
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
<
T
>
Array
<
out
T
>
.
maxWith
(
comparator
:
Comparator
<
in
T
>
)
:
T
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
ByteArray
.
maxWith
(
comparator
:
Comparator
<
in
Byte
>
)
:
Byte
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
ShortArray
.
maxWith
(
comparator
:
Comparator
<
in
Short
>
)
:
Short
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
IntArray
.
maxWith
(
comparator
:
Comparator
<
in
Int
>
)
:
Int
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
LongArray
.
maxWith
(
comparator
:
Comparator
<
in
Long
>
)
:
Long
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
FloatArray
.
maxWith
(
comparator
:
Comparator
<
in
Float
>
)
:
Float
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
DoubleArray
.
maxWith
(
comparator
:
Comparator
<
in
Double
>
)
:
Double
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
BooleanArray
.
maxWith
(
comparator
:
Comparator
<
in
Boolean
>
)
:
Boolean
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
CharArray
.
maxWith
(
comparator
:
Comparator
<
in
Char
>
)
:
Char
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
<
T
>
Iterable
<
T
>
.
maxWith
(
comparator
:
Comparator
<
in
T
>
)
:
T
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
fun
<
K
,
V
>
Map
<
out
K
,
V
>
.
maxWith
(
comparator
:
Comparator
<
in
Entry
<
K
,
V
>
>
)
:
Entry
<
K
,
V
>
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
@ExperimentalUnsignedTypes
fun
UIntArray
.
maxWith
(
comparator
:
Comparator
<
in
UInt
>
)
:
UInt
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
@ExperimentalUnsignedTypes
fun
ULongArray
.
maxWith
(
comparator
:
Comparator
<
in
ULong
>
)
:
ULong
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
@ExperimentalUnsignedTypes
fun
UByteArray
.
maxWith
(
comparator
:
Comparator
<
in
UByte
>
)
:
UByte
?
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.5"
,
"1.6"
)
@ExperimentalUnsignedTypes
fun
UShortArray
.
maxWith
(
comparator
:
Comparator
<
in
UShort
>
)
:
UShort
?
(source)