| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ICUCurrencyDisplayInfoProvider.ICUCurrencyDisplayInfo
This class performs data loading for currencies and keeps data in lightweight cache. |
| Modifier and Type | Field and Description |
|---|---|
| private volatile ICUCurrencyDisplayInfoProvider. | currencyDisplayInfoCache
Single-item cache for ICUCurrencyDisplayInfo keyed by locale. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CurrencyData. | getInstance(ULocale locale, boolean withFallback)
Implements com. |
| public boolean |
| currencyDisplayInfoCache | back to summary |
|---|---|
| private volatile ICUCurrencyDisplayInfoProvider. Single-item cache for ICUCurrencyDisplayInfo keyed by locale. | |
| ICUCurrencyDisplayInfoProvider | back to summary |
|---|---|
| public ICUCurrencyDisplayInfoProvider() | |
| getInstance | back to summary |
|---|---|
| public CurrencyData. Implements com.
| |
| hasData | back to summary |
|---|---|
| public boolean hasData() Implements com.
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final boolean | |
| private volatile ICUCurrencyDisplayInfoProvider. | formattingDataCache
Single-item cache for getName(), getSymbol(), and getFormatInfo(). |
| pack-priv final ULocale | |
| private volatile SoftReference | parsingDataCache
Cache for symbolMap() and nameMap(). |
| private volatile String[] | pluralsDataCache
Single-item cache for getPluralName(). |
| private final ICUResourceBundle | |
| private volatile CurrencyData. | spacingInfoCache
Cache for getSpacingInfo(). |
| private volatile Map | unitPatternsCache
Cache for getUnitPatterns(). |
| private volatile ICUCurrencyDisplayInfoProvider. | variantSymbolCache
Single-item cache for variant symbols. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| pack-priv String[] | |
| pack-priv CurrencyData. | |
| pack-priv Map | |
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| public String | getFormalSymbol(String
the three-letter ISO code. isoCode)Implements abstract com. |
| public CurrencyData. | getFormatInfo(String isoCode)
Implements abstract com. |
| public String | getName(String
the three-letter ISO code isoCode)Implements abstract com. |
| public String | getNarrowSymbol(String
the three-letter ISO code. isoCode)Implements abstract com. |
| public String | getPluralName(String
the three-letter ISO code isoCode, String the plural key, for example "one", "other" pluralKey)Implements abstract com. |
| public CurrencyData. | getSpacingInfo()
Implements abstract com. |
| public String | getSymbol(String
the three-letter ISO code. isoCode)Implements abstract com. |
| public ULocale | getULocale()
Implements abstract com. |
| public Map | getUnitPatterns()
Implements abstract com. |
| public String | getVariantSymbol(String
the three-letter ISO code. isoCode)Implements abstract com. |
| public Map | nameMap()
Implements abstract com. |
| public Map | symbolMap()
Implements abstract com. |
| fallback | back to summary |
|---|---|
| pack-priv final boolean fallback | |
| formattingDataCache | back to summary |
|---|---|
| private volatile ICUCurrencyDisplayInfoProvider. Single-item cache for getName(), getSymbol(), and getFormatInfo(). Holds data for only one currency. If another currency is requested, the old cache item is overwritten. | |
| locale | back to summary |
|---|---|
| pack-priv final ULocale locale | |
| parsingDataCache | back to summary |
|---|---|
| private volatile SoftReference<ICUCurrencyDisplayInfoProvider. Cache for symbolMap() and nameMap(). | |
| pluralsDataCache | back to summary |
|---|---|
| private volatile String[] pluralsDataCache Single-item cache for getPluralName().
array[0] is the ISO code. Holds data for only one currency. If another currency is requested, the old cache item is overwritten. | |
| rb | back to summary |
|---|---|
| private final ICUResourceBundle rb | |
| spacingInfoCache | back to summary |
|---|---|
| private volatile CurrencyData. Cache for getSpacingInfo(). | |
| unitPatternsCache | back to summary |
|---|---|
| private volatile Map<String, String> unitPatternsCache Cache for getUnitPatterns(). | |
| variantSymbolCache | back to summary |
|---|---|
| private volatile ICUCurrencyDisplayInfoProvider. Single-item cache for variant symbols. Holds data for only one currency. If another currency is requested, the old cache item is overwritten. | |
| ICUCurrencyDisplayInfo | back to summary |
|---|---|
| public ICUCurrencyDisplayInfo(ULocale locale, ICUResourceBundle rb, boolean fallback) | |
| fetchFormattingData | back to summary |
|---|---|
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| fetchParsingData | back to summary |
|---|---|
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| fetchPluralsData | back to summary |
|---|---|
| pack-priv String[] fetchPluralsData(String isoCode) | |
| fetchSpacingInfo | back to summary |
|---|---|
| pack-priv CurrencyData. | |
| fetchUnitPatterns | back to summary |
|---|---|
| pack-priv Map | |
| fetchVariantSymbol | back to summary |
|---|---|
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| getFormalSymbol | back to summary |
|---|---|
| public String getFormalSymbol(String isoCode) Implements abstract com. Doc from com. Returns 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. | |
| getFormatInfo | back to summary |
|---|---|
| public CurrencyData. Implements abstract com.
| |
| getName | back to summary |
|---|---|
| public String getName(String isoCode) Implements abstract com. Doc from com. Returns 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. | |
| getNarrowSymbol | back to summary |
|---|---|
| public String getNarrowSymbol(String isoCode) Implements abstract com. Doc from com. Returns 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. | |
| getPluralName | back to summary |
|---|---|
| public String getPluralName(String isoCode, String pluralKey) Implements abstract com. Doc from com. Returns 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. | |
| getSpacingInfo | back to summary |
|---|---|
| public CurrencyData. Implements abstract com.
| |
| getSymbol | back to summary |
|---|---|
| public String getSymbol(String isoCode) Implements abstract com. Doc from com. Returns 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. | |
| getULocale | back to summary |
|---|---|
| public ULocale getULocale() Implements abstract com. Doc from com. Returns the locale used to determine how to translate the currency names.
This is not necessarily the same locale passed to | |
| getUnitPatterns | back to summary |
|---|---|
| public Map Implements abstract com.
| |
| getVariantSymbol | back to summary |
|---|---|
| public String getVariantSymbol(String isoCode) Implements abstract com. Doc from com. Returns 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. | |
| nameMap | back to summary |
|---|---|
| public Map Implements abstract com. Doc from com. Returns a mapping from localized names (standard and plural) to currency codes. The returned map is unmodifiable. | |
| symbolMap | back to summary |
|---|---|
| public Map Implements abstract com. Doc from com. Returns a mapping from localized symbols and currency codes to currency codes. The returned map is unmodifiable. | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ICUCurrencyDisplayInfoProvider. | |
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| pack-priv final boolean | |
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| pack-priv String[] | |
| pack-priv CurrencyData. | |
| pack-priv Map | |
| pack-priv ICUCurrencyDisplayInfoProvider. |
| Access | Constructor and Description |
|---|---|
| pack-priv | CurrencySink(boolean noRoot, ICUCurrencyDisplayInfoProvider.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| public void | put(UResource.
Initially the key string of the enumeration-start resource.
Empty if the enumeration starts at the top level of the bundle.
Reuse for output values from Array and Table getters. key,Call getArray() or getTable() as appropriate.
Then reuse for output values from Array and Table getters. value,true if the bundle has no parent;
that is, its top-level table has the nofallback attribute,
or it is the root bundle of a locale tree. isRoot)Implements abstract com. |
| entrypointTable | back to summary |
|---|---|
| pack-priv final ICUCurrencyDisplayInfoProvider. | |
| formattingData | back to summary |
|---|---|
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| noRoot | back to summary |
|---|---|
| pack-priv final boolean noRoot | |
| parsingData | back to summary |
|---|---|
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| pluralsData | back to summary |
|---|---|
| pack-priv String[] pluralsData | |
| spacingInfo | back to summary |
|---|---|
| pack-priv CurrencyData. | |
| unitPatterns | back to summary |
|---|---|
| pack-priv Map<String, String> unitPatterns | |
| variantSymbol | back to summary |
|---|---|
| pack-priv ICUCurrencyDisplayInfoProvider. | |
| CurrencySink | back to summary |
|---|---|
| pack-priv CurrencySink(boolean noRoot, ICUCurrencyDisplayInfoProvider. | |
| consumeCurrenciesEntry | back to summary |
|---|---|
| pack-priv void consumeCurrenciesEntry(UResource. | |
| consumeCurrenciesTable | back to summary |
|---|---|
| pack-priv void consumeCurrenciesTable(UResource. | |
| consumeCurrenciesVariantEntry | back to summary |
|---|---|
| pack-priv void consumeCurrenciesVariantEntry(UResource. | |
| consumeCurrenciesVariantTable | back to summary |
|---|---|
| pack-priv void consumeCurrenciesVariantTable(UResource. | |
| consumeCurrencyPluralsEntry | back to summary |
|---|---|
| pack-priv void consumeCurrencyPluralsEntry(UResource. | |
| consumeCurrencyPluralsTable | back to summary |
|---|---|
| pack-priv void consumeCurrencyPluralsTable(UResource. | |
| consumeCurrencySpacingTable | back to summary |
|---|---|
| pack-priv void consumeCurrencySpacingTable(UResource. | |
| consumeCurrencyUnitPatternsTable | back to summary |
|---|---|
| pack-priv void consumeCurrencyUnitPatternsTable(UResource. | |
| consumeTopTable | back to summary |
|---|---|
| private void consumeTopTable(UResource. | |
| put | back to summary |
|---|---|
| public void put(UResource. Implements abstract com. The entrypoint method delegates to helper methods for each of the types of tables found in the currency data.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ICUCurrencyDisplayInfoProvider. | |
| public static final ICUCurrencyDisplayInfoProvider. | |
| public static final ICUCurrencyDisplayInfoProvider. | |
| public static final ICUCurrencyDisplayInfoProvider. | |
| public static final ICUCurrencyDisplayInfoProvider. | |
| public static final ICUCurrencyDisplayInfoProvider. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ICUCurrencyDisplayInfoProvider. | |
| public static ICUCurrencyDisplayInfoProvider. |
| CURRENCIES | back to summary |
|---|---|
| public static final ICUCurrencyDisplayInfoProvider. | |
| CURRENCY_PLURALS | back to summary |
|---|---|
| public static final ICUCurrencyDisplayInfoProvider. | |
| CURRENCY_SPACING | back to summary |
|---|---|
| public static final ICUCurrencyDisplayInfoProvider. | |
| CURRENCY_UNIT_PATTERNS | back to summary |
|---|---|
| public static final ICUCurrencyDisplayInfoProvider. | |
| CURRENCY_VARIANT | back to summary |
|---|---|
| public static final ICUCurrencyDisplayInfoProvider. | |
| TOP | back to summary |
|---|---|
| public static final ICUCurrencyDisplayInfoProvider. | |
| EntrypointTable | back to summary |
|---|---|
| private EntrypointTable() | |
| valueOf | back to summary |
|---|---|
| public static ICUCurrencyDisplayInfoProvider. | |
| values | back to summary |
|---|---|
| public static ICUCurrencyDisplayInfoProvider. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv CurrencyData. | |
| pack-priv final String | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| displayName | back to summary |
|---|---|
| pack-priv String displayName | |
| formatInfo | back to summary |
|---|---|
| pack-priv CurrencyData. | |
| isoCode | back to summary |
|---|---|
| pack-priv final String isoCode | |
| symbol | back to summary |
|---|---|
| pack-priv String symbol | |
| FormattingData | back to summary |
|---|---|
| pack-priv FormattingData(String isoCode) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Map | |
| pack-priv Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| nameToIsoCode | back to summary |
|---|---|
| pack-priv Map<String, String> nameToIsoCode | |
| symbolToIsoCode | back to summary |
|---|---|
| pack-priv Map<String, String> symbolToIsoCode | |
| ParsingData | back to summary |
|---|---|
| pack-priv ParsingData() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv String | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| isoCode | back to summary |
|---|---|
| pack-priv final String isoCode | |
| symbol | back to summary |
|---|---|
| pack-priv String symbol | |
| variant | back to summary |
|---|---|
| pack-priv final String variant | |
| VariantSymbol | back to summary |
|---|---|
| pack-priv VariantSymbol(String isoCode, String variant) | |