minWithOrNull

fun ByteBuffer.minWithOrNull(comparator: Comparator<in Byte>): Byte?
fun ShortBuffer.minWithOrNull(comparator: Comparator<in Short>): Short?
fun IntBuffer.minWithOrNull(comparator: Comparator<in Int>): Int?
fun LongBuffer.minWithOrNull(comparator: Comparator<in Long>): Long?
fun FloatBuffer.minWithOrNull(comparator: Comparator<in Float>): Float?
fun DoubleBuffer.minWithOrNull(comparator: Comparator<in Double>): Double?
fun CharBuffer.minWithOrNull(comparator: Comparator<in Char>): Char?

Returns the first element having the smallest value according to the provided comparator or null if there are no elements.