public abstract class MonetaryRoundedFactory extends Object
RoundedMoney using the MonetaryOperator as rounding.of(MathContext),
of(MonetaryOperator),
withRoundingMode(RoundingMode)| Constructor and Description |
|---|
MonetaryRoundedFactory() |
| Modifier and Type | Method and Description |
|---|---|
static MonetaryRoundedFactory |
of(MathContext mathContext)
Create the
MonetaryRoundedFactory using the PrecisionContextRoundedOperator as rounding operator. |
static MonetaryRoundedFactory |
of(MonetaryOperator roundingOperator)
Create the
MonetaryRoundedFactory using a custom MonetaryOperator as rounding operator. |
public MonetaryRoundedFactory()
public 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),
PrecisionContextRoundedOperatorpublic static MonetaryRoundedFactory of(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–2020 JavaMoney. All rights reserved.