Package com.commercetools.money
Class FastMoneyProvider
java.lang.Object
com.commercetools.money.FastMoneyProvider
- All Implemented Interfaces:
MonetaryProvider
MonetaryProvider which uses the FastMoney implementation. Used as default provider
-
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
-
FastMoneyProvider
public FastMoneyProvider()
-
-
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
-