Class CurrencyData.DefaultInfo
- Enclosing class:
CurrencyData
-
Method Summary
Modifier and TypeMethodDescriptiongetFormalSymbol(String isoCode) Returns the formal symbol for the currency with the provided ISO code.getFormatInfo(String isoCode) Returns the 'long name' for the currency with the provided ISO code.getNarrowSymbol(String isoCode) Returns the narrow symbol for the currency with the provided ISO code.getPluralName(String isoCode, String pluralType) Returns a 'plural name' for the currency with the provided ISO code corresponding to the pluralKey.Returns the symbol for the currency with the provided ISO code.Returns the locale used to determine how to translate the currency names.getVariantSymbol(String isoCode) Returns the variant symbol for the currency with the provided ISO code.static final CurrencyData.CurrencyDisplayInfogetWithFallback(boolean fallback) nameMap()Returns a mapping from localized names (standard and plural) to currency codes.Returns a mapping from localized symbols and currency codes to currency codes.Methods inherited from class CurrencyDisplayNames
getInstance, getInstance, getInstance, getInstance, hasData
-
Method Details
-
getWithFallback
-
getName
Description copied from class:CurrencyDisplayNamesReturns the 'long name' for the currency with the provided ISO code. If there is no data for the ISO code, substitutes isoCode, or returns null if noSubstitute was set in the factory method.- Specified by:
getNamein classCurrencyDisplayNames- Parameters:
isoCode- the three-letter ISO code- Returns:
- the display name
-
getPluralName
Description copied from class:CurrencyDisplayNamesReturns a 'plural name' for the currency with the provided ISO code corresponding to the pluralKey. If there is no data for the ISO code, substitutes isoCode or returns null. If there is data for the ISO code but no data for the plural key, substitutes the 'other' value (and failing that the isoCode) or returns null.- Specified by:
getPluralNamein classCurrencyDisplayNames- Parameters:
isoCode- the three-letter ISO codepluralType- the plural key, for example "one", "other"- Returns:
- the display name
- See Also:
-
getSymbol
Description copied from class:CurrencyDisplayNamesReturns the symbol for the currency with the provided ISO code.If there is no data for this symbol, substitutes isoCode, or returns null if noSubstitute was set in the factory method.
- Specified by:
getSymbolin classCurrencyDisplayNames- Parameters:
isoCode- the three-letter ISO code.- Returns:
- the symbol.
-
getNarrowSymbol
Description copied from class:CurrencyDisplayNamesReturns the narrow symbol for the currency with the provided ISO code.The 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.
- Specified by:
getNarrowSymbolin classCurrencyDisplayNames- Parameters:
isoCode- the three-letter ISO code.- Returns:
- the narrow symbol.
-
getFormalSymbol
Description copied from class:CurrencyDisplayNamesReturns the formal symbol for the currency with the provided ISO code.The 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.
- Specified by:
getFormalSymbolin classCurrencyDisplayNames- Parameters:
isoCode- the three-letter ISO code.- Returns:
- the formal symbol.
-
getVariantSymbol
Description copied from class:CurrencyDisplayNamesReturns the variant symbol for the currency with the provided ISO code.The 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.
- Specified by:
getVariantSymbolin classCurrencyDisplayNames- Parameters:
isoCode- the three-letter ISO code.- Returns:
- the variant symbol.
-
symbolMap
Description copied from class:CurrencyDisplayNamesReturns a mapping from localized symbols and currency codes to currency codes. The returned map is unmodifiable.- Specified by:
symbolMapin classCurrencyDisplayNames- Returns:
- the map
-
nameMap
Description copied from class:CurrencyDisplayNamesReturns a mapping from localized names (standard and plural) to currency codes. The returned map is unmodifiable.- Specified by:
nameMapin classCurrencyDisplayNames- Returns:
- the map
-
getULocale
Description copied from class:CurrencyDisplayNamesReturns the locale used to determine how to translate the currency names. This is not necessarily the same locale passed toCurrencyDisplayNames.getInstance(ULocale).- Specified by:
getULocalein classCurrencyDisplayNames- Returns:
- the display locale
-
getUnitPatterns
- Specified by:
getUnitPatternsin classCurrencyData.CurrencyDisplayInfo
-
getFormatInfo
- Specified by:
getFormatInfoin classCurrencyData.CurrencyDisplayInfo
-
getSpacingInfo
- Specified by:
getSpacingInfoin classCurrencyData.CurrencyDisplayInfo
-