org.javamoney.moneta.RoundedMoney using the MonetaryOperator as rounding.
MonetaryRoundedFactory#of(MathContext), MonetaryRoundedFactory#of(MonetaryOperator), MonetaryRoundedFactory#withRoundingMode(RoundingMode)
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryAmount | create(Number
the amount, not null. number, CurrencyUnit the currency, not null. currencyUnit)Create a |
| public MonetaryOperator | |
| public static MonetaryRoundedFactory | Returns: the factory using the MathContextRoundedOperatorthe mathContext that will be used to create the mathContext)PrecisionContextRoundedOperatorCreate the |
| public static MonetaryRoundedFactory | Returns: the factory using the MathContextRoundedOperatora custom roundingOperator)MonetaryOperator that will be used in this factoryCreate the |
| public static MonetaryRoundedFactoryBuilder | Returns: the builder to set scale, precision or boththe rounding mode, not null. roundingMode)Create a factory to |
| create | back to summary |
|---|---|
| public MonetaryAmount create(Number number, CurrencyUnit currencyUnit) Create a
| |
| getRoundingOperator | back to summary |
|---|---|
| public MonetaryOperator getRoundingOperator() return the
| |
| of | back to summary |
|---|---|
| public static MonetaryRoundedFactory of(MathContext mathContext) Create the
| |
| of | back to summary |
|---|---|
| public static MonetaryRoundedFactory of(MonetaryOperator roundingOperator) Create the
| |
| withRoundingMode | back to summary |
|---|---|
| public static MonetaryRoundedFactoryBuilder withRoundingMode(RoundingMode roundingMode) Create a factory to
| |