public final class RoundedMoneyProducer extends Object implements MonetaryAmountProducer
MonetaryAmountProducer that creates MonetaryAmount
using RoundedMoney using the MonetaryOperator as rounding operatorRoundedMoneyProducer#RoundedMoneyProducer(MonetaryOperator)}| Constructor and Description |
|---|
RoundedMoneyProducer()
Returns the
MonetaryAmountProducer that creates MonetaryAmount
using the RoundedMoney implementation using MonetaryOperators.rounding()
as rounding operator |
RoundedMoneyProducer(javax.money.MonetaryOperator operator)
Creates this producer using this operator
as rounding operator in all MonetaryAmount produced.
|
| Modifier and Type | Method and Description |
|---|---|
javax.money.MonetaryAmount |
create(javax.money.CurrencyUnit currency,
Number number)
|
javax.money.MonetaryOperator |
getOperator() |
public RoundedMoneyProducer(javax.money.MonetaryOperator operator)
operator - NullPointerException - if operator is nullpublic RoundedMoneyProducer()
MonetaryAmountProducer that creates MonetaryAmount
using the RoundedMoney implementation using MonetaryOperators.rounding()
as rounding operatorRoundedMoneyProducer}public javax.money.MonetaryAmount create(javax.money.CurrencyUnit currency, Number number)
MonetaryAmountProducercreate in interface MonetaryAmountProducerMonetaryAmount never nullpublic javax.money.MonetaryOperator getOperator()
Copyright © 2012-2016 JavaMoney. All Rights Reserved.