Class FastMoneyProvider

java.lang.Object
com.commercetools.money.FastMoneyProvider
All Implemented Interfaces:
MonetaryProvider

public class FastMoneyProvider extends Object implements MonetaryProvider
MonetaryProvider which uses the FastMoney implementation. Used as default provider
  • Constructor Details

    • FastMoneyProvider

      public FastMoneyProvider()
  • Method Details

    • asMonetaryAmount

      public javax.money.MonetaryAmount asMonetaryAmount(long amount, long fractionDigits, String currencyCode)
      Specified by:
      asMonetaryAmount in interface MonetaryProvider
    • asMonetaryAmount

      public javax.money.MonetaryAmount asMonetaryAmount(long amount, long fractionDigits, javax.money.CurrencyUnit currencyCode)
      Specified by:
      asMonetaryAmount in interface MonetaryProvider
    • asMonetaryAmount

      public javax.money.MonetaryAmount asMonetaryAmount(double amount, javax.money.CurrencyUnit currencyCode)
      Specified by:
      asMonetaryAmount in interface MonetaryProvider
    • asMonetaryAmount

      public javax.money.MonetaryAmount asMonetaryAmount(BigDecimal amount, javax.money.CurrencyUnit currencyCode)
      Specified by:
      asMonetaryAmount in interface MonetaryProvider