public static class CurrencyData.DefaultInfo extends CurrencyData.CurrencyDisplayInfo
| Modifier and Type | Method and Description |
|---|---|
String |
getFormalSymbol(String isoCode)
Returns the formal symbol for the currency with the provided ISO code.
|
CurrencyData.CurrencyFormatInfo |
getFormatInfo(String isoCode) |
String |
getName(String isoCode)
Returns the 'long name' for the currency with the provided ISO code.
|
String |
getNarrowSymbol(String isoCode)
Returns the narrow symbol 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() |
String |
getVariantSymbol(String isoCode)
Returns the variant symbol for the currency with the provided ISO code.
|
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, getInstancepublic 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)
CurrencyDisplayNamesIf there is no data for this symbol, substitutes isoCode, or returns null if noSubstitute was set in the factory method.
getSymbol in class CurrencyDisplayNamesisoCode - the three-letter ISO code.public String getNarrowSymbol(String isoCode)
CurrencyDisplayNamesThe narrow currency symbol is similar to the regular currency symbol, but it always takes the shortest form; for example, "$" instead of "US$" for USD in en-CA.
If there is no data for this symbol, substitutes the default symbol, or returns null if noSubstitute was set in the factory method.
getNarrowSymbol in class CurrencyDisplayNamesisoCode - the three-letter ISO code.public String getFormalSymbol(String isoCode)
CurrencyDisplayNamesThe formal currency symbol is similar to the regular currency symbol, but it always takes the form used in formal settings such as banking; for example, "NT$" instead of "$" for TWD in zh-TW.
If there is no data for this symbol, substitutes the default symbol, or returns null if noSubstitute was set in the factory method.
getFormalSymbol in class CurrencyDisplayNamesisoCode - the three-letter ISO code.public String getVariantSymbol(String isoCode)
CurrencyDisplayNamesThe variant symbol for a currency is an alternative symbol that is not necessarily as widely used as the regular symbol.
If there is no data for variant symbol, substitutes the default symbol, or returns null if noSubstitute was set in the factory method.
getVariantSymbol 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