Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / MinOf

MinOf

class MinOf : NumberEnvelope

Find the smallest value among numbers.

Here is how you can use it to find minimum among numbers:

val min = MinOf(1, 2, 3, 4).toInt()
val min = MinOf(1L, 2L, 3L).toLong()
val min = MinOf(listOf(1, 2, 3)).toInt()

There is no thread-safety guarantee.

Since 0.4

Constructors

Name Summary
<init> MinOf(vararg src: Int)
MinOf(vararg src: Long)
MinOf(vararg src: Double)
MinOf(vararg src: Float)
MinOf(src: Iterable<Number>)

Inherited Functions

Name Summary
invoke open fun invoke(): Double
Get value of this Scalar
toByte fun toByte(): Byte
toChar fun toChar(): Char
toDouble fun toDouble(): Double
toFloat fun toFloat(): Float
toInt fun toInt(): Int
toLong fun toLong(): Long
toShort fun toShort(): Short