Class BigDecimalMoneyProvider

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

public class BigDecimalMoneyProvider extends Object implements MonetaryProvider
MoneyProvider which uses the Money implementation with BigDecimals.
  • Constructor Details

    • BigDecimalMoneyProvider

      public BigDecimalMoneyProvider()
  • 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