MonetaryAmountProducer that creates MonetaryAmount
using RoundedMoney using the MonetaryOperator as rounding operator
RoundedMoneyProducer#RoundedMoneyProducer(MonetaryOperator)
| Modifier and Type | Field and Description |
|---|---|
| private final MonetaryOperator |
| Access | Constructor and Description |
|---|---|
| public | RoundedMoneyProducer(MonetaryOperator
the rounding, not null. operator)Creates this producer using this operator as rounding operator in all MonetaryAmount produced. |
| public | RoundedMoneyProducer()
Returns the |
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryAmount | create(CurrencyUnit currency, Number number)
Implements org. Creates a |
| public MonetaryOperator |
| operator | back to summary |
|---|---|
| private final MonetaryOperator operator | |
| RoundedMoneyProducer | back to summary |
|---|---|
| public RoundedMoneyProducer(MonetaryOperator operator) Creates this producer using this operator as rounding operator in all MonetaryAmount produced.
| |
| RoundedMoneyProducer | back to summary |
|---|---|
| public RoundedMoneyProducer() Returns the
| |
| create | back to summary |
|---|---|
| public MonetaryAmount create(CurrencyUnit currency, Number number) Implements org. Doc from org. Creates a
| |
| getOperator | back to summary |
|---|---|
| public MonetaryOperator getOperator() | |