kmongo / kotlin.collections / com.mongodb.client.MongoIterable / maxOrNull

maxOrNull

fun MongoIterable<Double>.maxOrNull(): Double? (source)
fun MongoIterable<Float>.maxOrNull(): Float? (source)

Returns the largest element or null if there are no elements.

If any of elements is NaN returns NaN.

fun <T : Comparable<T>> MongoIterable<T>.maxOrNull(): T? (source)

Returns the largest element or null if there are no elements.