Class DefaultAmountFormatter
java.lang.Object
de.hybris.platform.b2bacceleratorfacades.formatters.impl.DefaultAmountFormatter
- All Implemented Interfaces:
AmountFormatter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static DecimalFormatadjustDigits(DecimalFormat format, CurrencyModel currencyModel) AdjustsDecimalFormat's fraction digits according to givenCurrencyModel.protected static DecimalFormatadjustSymbol(DecimalFormat format, CurrencyModel currencyModel) AdjustsDecimalFormat's symbol according to givenCurrencyModel.protected static NumberFormatcreateCurrencyFormat(Locale locale, CurrencyModel currency) formatAmount(BigDecimal value, CurrencyModel currency, Locale locale)
-
Constructor Details
-
DefaultAmountFormatter
public DefaultAmountFormatter()
-
-
Method Details
-
formatAmount
- Specified by:
formatAmountin interfaceAmountFormatter
-
createCurrencyFormat
-
adjustDigits
AdjustsDecimalFormat's fraction digits according to givenCurrencyModel. -
adjustSymbol
AdjustsDecimalFormat's symbol according to givenCurrencyModel.
-