public final class MinOf extends NumberEnvelope
Here is how you can use it to find the min of a set of numbers:
int min = new MinOf(1, 2, 3, 4).intValue(); long min = new MinOf(1L, 2L, 3L).longValue(); int min = new MinOf(numbers).intValue();
There is no thread-safety guarantee.
Constructor and Description |
---|
MinOf(Iterable<? extends Number> src)
Ctor.
|
MinOf(Number... src)
Ctor.
|
byteValue, doubleValue, equals, floatValue, hashCode, intValue, longValue, shortValue, toString
Copyright © 2017–2022 Cactoos. All rights reserved.