Package com.commercetools.money
Class BigDecimalMoneyProvider
java.lang.Object
com.commercetools.money.BigDecimalMoneyProvider
- All Implemented Interfaces:
MonetaryProvider
MoneyProvider which uses the Money implementation with BigDecimals.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmount
asMonetaryAmount
(double amount, javax.money.CurrencyUnit currencyCode) javax.money.MonetaryAmount
asMonetaryAmount
(long amount, long fractionDigits, String currencyCode) javax.money.MonetaryAmount
asMonetaryAmount
(long amount, long fractionDigits, javax.money.CurrencyUnit currencyCode) javax.money.MonetaryAmount
asMonetaryAmount
(BigDecimal amount, javax.money.CurrencyUnit currencyCode)
-
Constructor Details
-
BigDecimalMoneyProvider
public BigDecimalMoneyProvider()
-
-
Method Details
-
asMonetaryAmount
public javax.money.MonetaryAmount asMonetaryAmount(long amount, long fractionDigits, String currencyCode) - Specified by:
asMonetaryAmount
in interfaceMonetaryProvider
-
asMonetaryAmount
public javax.money.MonetaryAmount asMonetaryAmount(long amount, long fractionDigits, javax.money.CurrencyUnit currencyCode) - Specified by:
asMonetaryAmount
in interfaceMonetaryProvider
-
asMonetaryAmount
public javax.money.MonetaryAmount asMonetaryAmount(double amount, javax.money.CurrencyUnit currencyCode) - Specified by:
asMonetaryAmount
in interfaceMonetaryProvider
-
asMonetaryAmount
public javax.money.MonetaryAmount asMonetaryAmount(BigDecimal amount, javax.money.CurrencyUnit currencyCode) - Specified by:
asMonetaryAmount
in interfaceMonetaryProvider
-