Package com.ibm.icu.impl
Class CurrencyData.DefaultInfo
- java.lang.Object
-
- com.ibm.icu.text.CurrencyDisplayNames
-
- com.ibm.icu.impl.CurrencyData.CurrencyDisplayInfo
-
- com.ibm.icu.impl.CurrencyData.DefaultInfo
-
- Enclosing class:
- CurrencyData
public static class CurrencyData.DefaultInfo extends CurrencyData.CurrencyDisplayInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyData.CurrencyFormatInfogetFormatInfo(String isoCode)StringgetName(String isoCode)Returns the 'long name' for the currency with the provided ISO code.StringgetPluralName(String isoCode, String pluralType)Returns a 'plural name' for the currency with the provided ISO code corresponding to the pluralKey.CurrencyData.CurrencySpacingInfogetSpacingInfo()StringgetSymbol(String isoCode)Returns the symbol for the currency with the provided ISO code.ULocalegetULocale()Returns the locale used to determine how to translate the currency names.Map<String,String>getUnitPatterns()static CurrencyData.CurrencyDisplayInfogetWithFallback(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.-
Methods inherited from class com.ibm.icu.text.CurrencyDisplayNames
getInstance, getInstance, getInstance, getInstance, hasData
-
-
-
-
Method Detail
-
getWithFallback
public static final CurrencyData.CurrencyDisplayInfo getWithFallback(boolean fallback)
-
getName
public String getName(String isoCode)
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.- Specified by:
getNamein classCurrencyDisplayNames- Parameters:
isoCode- the three-letter ISO code- Returns:
- the display name
-
getPluralName
public String getPluralName(String isoCode, String pluralType)
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:
PluralRules
-
getSymbol
public String getSymbol(String isoCode)
Description copied from class:CurrencyDisplayNamesReturns the symbol for the currency with the provided ISO code. If there is no data for the ISO code, substitutes isoCode or returns null.- Specified by:
getSymbolin classCurrencyDisplayNames- Parameters:
isoCode- the three-letter ISO code.- Returns:
- the display name.
-
symbolMap
public Map<String,String> 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
public Map<String,String> 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
public ULocale 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
public Map<String,String> getUnitPatterns()
- Specified by:
getUnitPatternsin classCurrencyData.CurrencyDisplayInfo
-
getFormatInfo
public CurrencyData.CurrencyFormatInfo getFormatInfo(String isoCode)
- Specified by:
getFormatInfoin classCurrencyData.CurrencyDisplayInfo
-
getSpacingInfo
public CurrencyData.CurrencySpacingInfo getSpacingInfo()
- Specified by:
getSpacingInfoin classCurrencyData.CurrencyDisplayInfo
-
-