Class Utils


  • public class Utils
    extends Object
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • buildPriceFormatter

        public static NumberFormat buildPriceFormatter​(Locale locale,
                                                       String currencyCode)
        Builds a NumberFormat instance used for formatting prices based on the given locale and currency code. If the given currency code is not valid in respect to ISO 4217, the default currency for the given locale is used.
        Parameters:
        locale - Price locale
        currencyCode - Additional currency code
        Returns:
        Price formatter