public final class MultiplicationOf extends NumberEnvelope
Here is how you can use it to multiply numbers:
int multiplication = new MultiplicationOf(1, 2, 3, 4).intValue(); long multiplication = new MultiplicationOf(1L, 2L, 3L).longValue(); double multiplication = new MultiplicationOf(2.3, 3.4, 4.0).doubleValue();
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 the UncheckedScalar
decorator. Or you may use
IoCheckedScalar
to wrap it in an IOException.
There is no thread-safety guarantee.
Constructor and Description |
---|
MultiplicationOf(Iterable<? extends Number> src)
Ctor.
|
MultiplicationOf(Number arg,
Number... src)
Ctor.
|
doubleValue, floatValue, intValue, longValue, value
byteValue, shortValue
Copyright © 2017–2019 Cactoos. All rights reserved.