public final class SumOfFloatScalar extends Object implements Scalar<Float>
Here is how you can use it to summarize float numbers:
float sum = new SumOfFloatScalar(() -> 1f,() -> 2f, () -> 3f).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 |
---|
SumOfFloatScalar(Scalar<Float>... src)
Ctor.
|
@SafeVarargs public SumOfFloatScalar(Scalar<Float>... src)
src
- Varargs of Scalar to sum up values fromCopyright © 2017–2019 Cactoos. All rights reserved.