public final class Multiplier extends Object
Multiplier
provides static multiplyExact(..)
methods for
Decimal
values of different scales. The multipliable
object returned by those methods encapsulates the Decimal argument and facilitates
exact typed multiplication. The multipliable object acts as first factor in the multiplication
and provides a set of overloaded methods for different scales. Each one of those methods
delivers a different result scale which represents the appropriate scale for the product of
an exact multiplication.
An exact typed multiplication can for instance be written as:
Decimal<Scale5f> value = ... //some value Decimal7f product7 = Multiplier.multiplyExact(value).by(Decimal2f.FIVE); Decimal9f product9 = Multiplier.multiplyExact(value).by(Decimal4f.NINE);
Modifier and Type | Method and Description |
---|---|
static Multipliable0f |
multiplyExact(Decimal0f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable10f |
multiplyExact(Decimal10f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable11f |
multiplyExact(Decimal11f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable12f |
multiplyExact(Decimal12f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable13f |
multiplyExact(Decimal13f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable14f |
multiplyExact(Decimal14f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable15f |
multiplyExact(Decimal15f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable16f |
multiplyExact(Decimal16f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable17f |
multiplyExact(Decimal17f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable18f |
multiplyExact(Decimal18f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable1f |
multiplyExact(Decimal1f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable2f |
multiplyExact(Decimal2f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable3f |
multiplyExact(Decimal3f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable4f |
multiplyExact(Decimal4f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable5f |
multiplyExact(Decimal5f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable6f |
multiplyExact(Decimal6f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable7f |
multiplyExact(Decimal7f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable8f |
multiplyExact(Decimal8f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable9f |
multiplyExact(Decimal9f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable0f |
multiplyExact(MutableDecimal0f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable10f |
multiplyExact(MutableDecimal10f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable11f |
multiplyExact(MutableDecimal11f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable12f |
multiplyExact(MutableDecimal12f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable13f |
multiplyExact(MutableDecimal13f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable14f |
multiplyExact(MutableDecimal14f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable15f |
multiplyExact(MutableDecimal15f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable16f |
multiplyExact(MutableDecimal16f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable17f |
multiplyExact(MutableDecimal17f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable18f |
multiplyExact(MutableDecimal18f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable1f |
multiplyExact(MutableDecimal1f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable2f |
multiplyExact(MutableDecimal2f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable3f |
multiplyExact(MutableDecimal3f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable4f |
multiplyExact(MutableDecimal4f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable5f |
multiplyExact(MutableDecimal5f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable6f |
multiplyExact(MutableDecimal6f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable7f |
multiplyExact(MutableDecimal7f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable8f |
multiplyExact(MutableDecimal8f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
static Multipliable9f |
multiplyExact(MutableDecimal9f value)
Returns the
value argument as a multipliable factor for typed
exact multiplication. |
public static Multipliable0f multiplyExact(Decimal0f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable0f multiplyExact(MutableDecimal0f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable1f multiplyExact(Decimal1f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable1f multiplyExact(MutableDecimal1f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable2f multiplyExact(Decimal2f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable2f multiplyExact(MutableDecimal2f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable3f multiplyExact(Decimal3f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable3f multiplyExact(MutableDecimal3f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable4f multiplyExact(Decimal4f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable4f multiplyExact(MutableDecimal4f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable5f multiplyExact(Decimal5f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable5f multiplyExact(MutableDecimal5f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable6f multiplyExact(Decimal6f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable6f multiplyExact(MutableDecimal6f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable7f multiplyExact(Decimal7f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable7f multiplyExact(MutableDecimal7f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable8f multiplyExact(Decimal8f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable8f multiplyExact(MutableDecimal8f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable9f multiplyExact(Decimal9f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable9f multiplyExact(MutableDecimal9f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable10f multiplyExact(Decimal10f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable10f multiplyExact(MutableDecimal10f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable11f multiplyExact(Decimal11f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable11f multiplyExact(MutableDecimal11f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable12f multiplyExact(Decimal12f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable12f multiplyExact(MutableDecimal12f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable13f multiplyExact(Decimal13f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable13f multiplyExact(MutableDecimal13f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable14f multiplyExact(Decimal14f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable14f multiplyExact(MutableDecimal14f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable15f multiplyExact(Decimal15f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable15f multiplyExact(MutableDecimal15f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable16f multiplyExact(Decimal16f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable16f multiplyExact(MutableDecimal16f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable17f multiplyExact(Decimal17f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable17f multiplyExact(MutableDecimal17f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable18f multiplyExact(Decimal18f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplicationpublic static Multipliable18f multiplyExact(MutableDecimal18f value)
value
argument as a multipliable factor for typed
exact multiplication. The second factor is passed to one of the
by(..)
methods of the returned multiplier. The scale of
the result is the sum of the scales of the value
and the
second factor passed to the by(..)
method.value
- the first factor of the multiplication to be wrapped as a
multipliable objectvalue
as first factor
of an exact multiplication