public final class MinOf extends Number
Here is how you can use it to summarize numbers:
int sum = new MinOf(1, 2, 3, 4).intValue(); long sum = new MinOf(1L, 2L, 3L).longValue(); int sum = new MinOf(numbers.toArray(new Integer[numbers.size()])).intValue();
There is no thread-safety guarantee.
This class implements Scalar
, which throws a checked
Exception
. This may not be convenient in many cases. To make
it more convenient and get rid of the checked exception you can
use UncheckedScalar
or IoCheckedScalar
decorators.
Constructor and Description |
---|
MinOf(Double... src)
Ctor.
|
MinOf(Float... src)
Ctor.
|
MinOf(Integer... src)
Ctor.
|
MinOf(Iterable<Number> src)
Ctor.
|
MinOf(Long... src)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
float |
floatValue() |
int |
intValue() |
long |
longValue() |
byteValue, shortValue
public MinOf(Integer... src)
src
- Numberspublic MinOf(Long... src)
src
- Numberspublic MinOf(Double... src)
src
- Numberspublic MinOf(Float... src)
src
- Numberspublic float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
Copyright © 2017 Cactoos. All rights reserved.