Class Utils
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.models.v1.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NumberFormat
buildPriceFormatter(Locale locale, String currencyCode)
Builds a NumberFormat instance used for formatting prices based on the given locale and currency code.
-
-
-
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 localecurrencyCode
- Additional currency code- Returns:
- Price formatter
-
-