public class DefaultAmountFormatter extends java.lang.Object implements AmountFormatter
| Constructor and Description |
|---|
DefaultAmountFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.text.DecimalFormat |
adjustDigits(java.text.DecimalFormat format,
CurrencyModel currencyModel)
Adjusts
DecimalFormat's fraction digits according to given CurrencyModel. |
protected static java.text.DecimalFormat |
adjustSymbol(java.text.DecimalFormat format,
CurrencyModel currencyModel)
Adjusts
DecimalFormat's symbol according to given CurrencyModel. |
protected static java.text.NumberFormat |
createCurrencyFormat(java.util.Locale locale,
CurrencyModel currency) |
java.lang.String |
formatAmount(java.math.BigDecimal value,
CurrencyModel currency,
java.util.Locale locale) |
public java.lang.String formatAmount(java.math.BigDecimal value,
CurrencyModel currency,
java.util.Locale locale)
formatAmount in interface AmountFormatterprotected static java.text.NumberFormat createCurrencyFormat(java.util.Locale locale,
CurrencyModel currency)
protected static java.text.DecimalFormat adjustDigits(java.text.DecimalFormat format,
CurrencyModel currencyModel)
DecimalFormat's fraction digits according to given CurrencyModel.protected static java.text.DecimalFormat adjustSymbol(java.text.DecimalFormat format,
CurrencyModel currencyModel)
DecimalFormat's symbol according to given CurrencyModel.Copyright © 2018 SAP SE. All Rights Reserved.