public static class CurrencyData.DefaultInfo extends CurrencyData.CurrencyDisplayInfo
| Modifier and Type | Method and Description |
|---|---|
CurrencyData.CurrencyFormatInfo |
getFormatInfo(String isoCode) |
String |
getName(String isoCode)
Returns the 'long name' for the currency with the provided ISO code.
|
String |
getPluralName(String isoCode,
String pluralType)
Returns a 'plural name' for the currency with the provided ISO code corresponding to
the pluralKey.
|
CurrencyData.CurrencySpacingInfo |
getSpacingInfo() |
String |
getSymbol(String isoCode)
Returns the symbol for the currency with the provided ISO code.
|
ULocale |
getULocale()
Returns the locale used to determine how to translate the currency names.
|
Map<String,String> |
getUnitPatterns() |
static CurrencyData.CurrencyDisplayInfo |
getWithFallback(boolean fallback) |
Map<String,String> |
nameMap()
Returns a mapping from localized names (standard and plural) to currency codes.
|
Map<String,String> |
symbolMap()
Returns a mapping from localized symbols and currency codes to currency codes.
|
getInstance, getInstance, getInstance, getInstance, hasDatapublic static final CurrencyData.CurrencyDisplayInfo getWithFallback(boolean fallback)
public String getName(String isoCode)
CurrencyDisplayNamesgetName in class CurrencyDisplayNamesisoCode - the three-letter ISO codepublic String getPluralName(String isoCode, String pluralType)
CurrencyDisplayNamesgetPluralName in class CurrencyDisplayNamesisoCode - the three-letter ISO codepluralType - the plural key, for example "one", "other"PluralRulespublic String getSymbol(String isoCode)
CurrencyDisplayNamesgetSymbol in class CurrencyDisplayNamesisoCode - the three-letter ISO code.public Map<String,String> symbolMap()
CurrencyDisplayNamessymbolMap in class CurrencyDisplayNamespublic Map<String,String> nameMap()
CurrencyDisplayNamesnameMap in class CurrencyDisplayNamespublic ULocale getULocale()
CurrencyDisplayNamesCurrencyDisplayNames.getInstance(ULocale).getULocale in class CurrencyDisplayNamespublic Map<String,String> getUnitPatterns()
getUnitPatterns in class CurrencyData.CurrencyDisplayInfopublic CurrencyData.CurrencyFormatInfo getFormatInfo(String isoCode)
getFormatInfo in class CurrencyData.CurrencyDisplayInfopublic CurrencyData.CurrencySpacingInfo getSpacingInfo()
getSpacingInfo in class CurrencyData.CurrencyDisplayInfo