CurrencyNameProvider class
for the JRE LocaleProviderAdapter.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final LocaleProviderAdapter. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | getAvailableLanguageTags()
Implements sun. Returns a set of available language tags of a LocaleServiceProvider. |
| public Locale[] | Returns: An array of all locales for which this locale service provider can provide localized objects or names.Implements abstract java. Returns an array of all locales for which this locale service provider can provide localized objects or names. |
| public String | Returns: the name for the currency that is appropriate for display to the user, or null if the name is not available for the localethe ISO 4217 currency code, which
consists of three upper-case letters between 'A' (U+0041) and
'Z' (U+005A) currencyCode, Locale the desired locale locale)Overrides java. Returns a name for the currency that is appropriate for display to the user. |
| private String | |
| public String | Returns: the symbol of the given currency code for the specified locale, or null if the symbol is not available for the localethe ISO 4217 currency code, which
consists of three upper-case letters between 'A' (U+0041) and
'Z' (U+005A) currencyCode, Locale the desired locale locale)Implements abstract java. Gets the symbol of the given currency code for the specified locale. |
| langtags | back to summary |
|---|---|
| private final Set<String> langtags | |
| type | back to summary |
|---|---|
| private final LocaleProviderAdapter. | |
| CurrencyNameProviderImpl | back to summary |
|---|---|
| public CurrencyNameProviderImpl(LocaleProviderAdapter. | |
| getAvailableLanguageTags | back to summary |
|---|---|
| public Set Implements sun. Doc from sun. Returns a set of available language tags of a LocaleServiceProvider.
Note that the returned set doesn't contain the language tag for
| |
| getAvailableLocales | back to summary |
|---|---|
| public Locale[] getAvailableLocales() Implements abstract java. Returns an array of all locales for which this locale service provider can provide localized objects or names. | |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName(String currencyCode, Locale locale) Overrides java. Returns a name for the currency that is appropriate for display to the user. The default implementation returns null.
| |
| getString | back to summary |
|---|---|
| private String getString(String key, Locale locale) | |
| getSymbol | back to summary |
|---|---|
| public String getSymbol(String currencyCode, Locale locale) Implements abstract java. Gets the symbol of the given currency code for the specified locale. For example, for "USD" (US Dollar), the symbol is "$" if the specified locale is the US, while for other locales it may be "US$". If no symbol can be determined, null should be returned.
| |