public final class SumOfDoubleScalar extends Object implements Scalar<Double>
Here is how you can use it to summarize double numbers:
double sum = new SumOfDoubleScalar(() -> 1.1,() -> 2.1, () -> 3.1).value();
This class implements Scalar
, which throws a checked
Exception
. Despite that this class does NOT throw a checked
exception.
There is no thread-safety guarantee.
Constructor and Description |
---|
SumOfDoubleScalar(Scalar<Double>... src)
Ctor.
|
@SafeVarargs public SumOfDoubleScalar(Scalar<Double>... src)
src
- Varargs of Scalar to sum up values fromCopyright © 2017–2019 Cactoos. All rights reserved.