Class DecimalNumberAmountConverter
java.lang.Object
com.fasterxml.jackson.datatype.jodamoney.DecimalNumberAmountConverter
- All Implemented Interfaces:
AmountConverter
An
AmountConverter converting Money to its amount represented as
decimal number (such as 12.34 for Money.parse("USD 12.34")),
and back to Money from this representation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromMoney(org.joda.money.Money money) (package private) static DecimalNumberAmountConverterorg.joda.money.MoneytoMoney(org.joda.money.CurrencyUnit currencyUnit, BigDecimal amount)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DecimalNumberAmountConverter
private DecimalNumberAmountConverter()
-
-
Method Details
-
getInstance
-
fromMoney
- Specified by:
fromMoneyin interfaceAmountConverter
-
toMoney
- Specified by:
toMoneyin interfaceAmountConverter
-