@Deprecated public interface MonetaryRoundedFactory
RoundedMoney using the MonetaryOperator as rounding.MonetaryRoundedFactory#of(MathContext)},
MonetaryRoundedFactory#of(MonetaryOperator)},
MonetaryRoundedFactory#withRoundingMode(RoundingMode)}| Modifier and Type | Method and Description |
|---|---|
javax.money.MonetaryAmount |
create(Number number,
javax.money.CurrencyUnit currencyUnit)
Deprecated.
Create a
MonetaryAmount with Number, CurrencyUnit and
the MonetaryOperator as rounding operator given in this factory with the
getRoundingOperator(). |
javax.money.MonetaryOperator |
getRoundingOperator()
Deprecated.
return the
MonetaryOperator as rounding operator |
static MonetaryRoundedFactory |
of(MathContext mathContext)
Deprecated.
Create the
MonetaryRoundedFactory using the PrecisionContextRoundedOperator as rounding operator. |
static MonetaryRoundedFactory |
of(javax.money.MonetaryOperator roundingOperator)
Deprecated.
Create the
MonetaryRoundedFactory using a custom MonetaryOperator as rounding operator. |
static MonetaryRoundedFactoryBuilder |
withRoundingMode(RoundingMode roundingMode)
Deprecated.
Create a factory to
MonetaryRoundedFactoryBuilder with this factory is possible make
a custom MonetaryOperator as rounding operator, setting the precision, scale or both. |
javax.money.MonetaryOperator getRoundingOperator()
MonetaryOperator as rounding operatorjavax.money.MonetaryAmount create(Number number, javax.money.CurrencyUnit currencyUnit)
MonetaryAmount with Number, CurrencyUnit and
the MonetaryOperator as rounding operator given in this factory with the
getRoundingOperator(). The implementation will RoundedMoneynumber - currencyUnit - MonetaryAmount from number and CurrencyUnitstatic MonetaryRoundedFactoryBuilder withRoundingMode(RoundingMode roundingMode)
MonetaryRoundedFactoryBuilder with this factory is possible make
a custom MonetaryOperator as rounding operator, setting the precision, scale or both.roundingMode - NullPointerException - if roundingMode is nullScaleRoundedOperator},
PrecisionContextRoundedOperator},
PrecisionScaleRoundedOperator},
RoundingMode}static MonetaryRoundedFactory of(MathContext mathContext)
MonetaryRoundedFactory using the PrecisionContextRoundedOperator as rounding operator.mathContext - the mathContext that will be used to create the PrecisionContextRoundedOperatorNullPointerException - if mathContext is nullPrecisionContextRoundedOperator#of(MathContext)},
PrecisionContextRoundedOperator}static MonetaryRoundedFactory of(javax.money.MonetaryOperator roundingOperator)
MonetaryRoundedFactory using a custom MonetaryOperator as rounding operator.roundingOperator - a custom MonetaryOperator that will be used in this factoryNullPointerException - if roundingOperator is nullCopyright © 2012-2016 JavaMoney. All Rights Reserved.