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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmountasMonetaryAmount(double amount, javax.money.CurrencyUnit currencyCode) javax.money.MonetaryAmountasMonetaryAmount(long amount, long fractionDigits, String currencyCode) javax.money.MonetaryAmountasMonetaryAmount(long amount, long fractionDigits, javax.money.CurrencyUnit currencyCode) javax.money.MonetaryAmountasMonetaryAmount(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:
asMonetaryAmountin interfaceMonetaryProvider
-
asMonetaryAmount
public javax.money.MonetaryAmount asMonetaryAmount(long amount, long fractionDigits, javax.money.CurrencyUnit currencyCode) - Specified by:
asMonetaryAmountin interfaceMonetaryProvider
-
asMonetaryAmount
public javax.money.MonetaryAmount asMonetaryAmount(double amount, javax.money.CurrencyUnit currencyCode) - Specified by:
asMonetaryAmountin interfaceMonetaryProvider
-
asMonetaryAmount
public javax.money.MonetaryAmount asMonetaryAmount(BigDecimal amount, javax.money.CurrencyUnit currencyCode) - Specified by:
asMonetaryAmountin interfaceMonetaryProvider
-