Class DefaultAmountFormatter

    • Constructor Detail

      • DefaultAmountFormatter

        public DefaultAmountFormatter()
    • Method Detail

      • createCurrencyFormat

        protected static java.text.NumberFormat createCurrencyFormat​(java.util.Locale locale,
                                                                     CurrencyModel currency)
      • adjustDigits

        protected static java.text.DecimalFormat adjustDigits​(java.text.DecimalFormat format,
                                                              CurrencyModel currencyModel)
        Adjusts DecimalFormat's fraction digits according to given CurrencyModel.
      • adjustSymbol

        protected static java.text.DecimalFormat adjustSymbol​(java.text.DecimalFormat format,
                                                              CurrencyModel currencyModel)
        Adjusts DecimalFormat's symbol according to given CurrencyModel.