List of utility methods to do Currency Name Get
String | countryFlagForCurrency(String c) country Flag For Currency if (EUR.equals(c)) { return "europeanunion"; } else if (USD.equals(c)) { return "us"; String commodityCode = COMMODITIES.get(c); if (commodityCode != null) { return commodityCode; ... |
Currency | getDefaultCurrency() get Default Currency return Currency.getInstance(Locale.getDefault());
|
String | getLocalSymbol(Currency currency) Always returns the local symbol (for example $ or the euro symbol) of a currency, whatever the locale of the system is. return currencyLocaleMap.containsKey(currency) ? currency.getSymbol(currencyLocaleMap.get(currency))
: currency.getSymbol();
|
String | nameForCurrency(String currency) name For Currency Currency cy = currencyFromCode(currency);
return cy == null ? null : cy.getDisplayName(Locale.ENGLISH);
|
String | printCurrency(Currency value) print Currency if (value == null) throw new IllegalArgumentException("Can't print currency value!"); else return value.getCurrencyCode(); |