- java.lang.Object
-
- com.aoapps.lang.i18n.CurrencyUtil
-
public final class CurrencyUtil extends Object
Utility methods for working with currencies.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getSymbol(Currency currency)
Gets a symbol for a currency in the current thread locale, with some extra hard-coded value when the Java runtime returns the currencyCode as the symbol.static String
getSymbol(Currency currency, Locale locale)
Gets a symbol for a currency in the provided locale, with some extra hard-coded value when the Java runtime returns thecurrencyCode
as the symbol.
-
-
-
Method Detail
-
getSymbol
public static String getSymbol(Currency currency, Locale locale)
Gets a symbol for a currency in the provided locale, with some extra hard-coded value when the Java runtime returns thecurrencyCode
as the symbol.Currency.getSymbol(java.util.Locale)
does not seem to be as fully implemented as desired.- See Also:
Currency.getSymbol(java.util.Locale)
-
getSymbol
public static String getSymbol(Currency currency)
Gets a symbol for a currency in the current thread locale, with some extra hard-coded value when the Java runtime returns the currencyCode as the symbol.Currency.getSymbol(java.util.Locale)
does not seem to be as fully implemented as desired.- See Also:
Currency.getSymbol(java.util.Locale)
,ThreadLocale
-
-