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