NumberFormatProvider class for the JRE LocaleProviderAdapter.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private final Set | |
| private static final int | |
| private static final int | |
| private final LocaleProviderAdapter. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | adjustForCurrencyDefaultFractionDigits(DecimalFormat format, DecimalFormatSymbols symbols)
Adjusts the minimum and maximum fraction digits to values that are reasonable for the currency's default fraction digits. |
| 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 NumberFormat | Returns: a compact number formatterthe desired locale locale, NumberFormat.the style for formatting a number formatStyleOverrides java. Returns a new |
| public NumberFormat | Returns: a currency formatterthe desired locale. locale)Implements abstract java. Returns a new |
| private NumberFormat | |
| public NumberFormat | Returns: a number format for integer valuesthe desired locale locale)Implements abstract java. Returns a new |
| public NumberFormat | Returns: a general-purpose number formatterthe desired locale locale)Implements abstract java. Returns a new general-purpose |
| public NumberFormat | Returns: a percent formatterthe desired locale locale)Implements abstract java. Returns a new |
| public boolean | isSupportedLocale(Locale locale)
Overrides java. Returns |
| ACCOUNTINGSTYLE | back to summary |
|---|---|
| private static final int ACCOUNTINGSTYLE | |
| CURRENCYSTYLE | back to summary |
|---|---|
| private static final int CURRENCYSTYLE | |
| INTEGERSTYLE | back to summary |
|---|---|
| private static final int INTEGERSTYLE | |
| langtags | back to summary |
|---|---|
| private final Set<String> langtags | |
| NUMBERSTYLE | back to summary |
|---|---|
| private static final int NUMBERSTYLE | |
| PERCENTSTYLE | back to summary |
|---|---|
| private static final int PERCENTSTYLE | |
| type | back to summary |
|---|---|
| private final LocaleProviderAdapter. | |
| NumberFormatProviderImpl | back to summary |
|---|---|
| public NumberFormatProviderImpl(LocaleProviderAdapter. | |
| adjustForCurrencyDefaultFractionDigits | back to summary |
|---|---|
| private static void adjustForCurrencyDefaultFractionDigits(DecimalFormat format, DecimalFormatSymbols symbols) Adjusts the minimum and maximum fraction digits to values that are reasonable for the currency's default fraction digits. | |
| 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. | |
| getCompactNumberInstance | back to summary |
|---|---|
| public NumberFormat getCompactNumberInstance(Locale locale, NumberFormat. Overrides java. Returns a new
| |
| getCurrencyInstance | back to summary |
|---|---|
| public NumberFormat getCurrencyInstance(Locale locale) Implements abstract java. Returns a new
| |
| getInstance | back to summary |
|---|---|
| private NumberFormat getInstance(Locale locale, int choice) | |
| getIntegerInstance | back to summary |
|---|---|
| public NumberFormat getIntegerInstance(Locale locale) Implements abstract java. Returns a new
| |
| getNumberInstance | back to summary |
|---|---|
| public NumberFormat getNumberInstance(Locale locale) Implements abstract java. Returns a new general-purpose
| |
| getPercentInstance | back to summary |
|---|---|
| public NumberFormat getPercentInstance(Locale locale) Implements abstract java. Returns a new
| |
| isSupportedLocale | back to summary |
|---|---|
| public boolean isSupportedLocale(Locale locale) Overrides java. Doc from java. Returns The default implementation returns
| |