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. |
public Locale[] | Returns: An array of all locales for which this locale service provider can provide localized objects or names.Implements abstract java. |
public NumberFormat | Returns: a compact number formatterthe desired locale locale, NumberFormat.the style for formatting a number formatStyleOverrides java. NumberFormat instance which formats
a number in its compact form for the specified
locale and formatStyle .
|
public NumberFormat | Returns: a currency formatterthe desired locale. locale)Implements abstract java. NumberFormat instance which formats
monetary values for the specified locale.
|
private NumberFormat | |
public NumberFormat | Returns: a number format for integer valuesthe desired locale locale)Implements abstract java. NumberFormat instance which formats
integer values for the specified locale.
|
public NumberFormat | Returns: a general-purpose number formatterthe desired locale locale)Implements abstract java. NumberFormat instance for
the specified locale.
|
public NumberFormat | Returns: a percent formatterthe desired locale locale)Implements abstract java. NumberFormat instance which formats
percentage values for the specified locale.
|
public boolean | isSupportedLocale(Locale
a locale)Locale to be testedOverrides java. true if the given locale is supported by
this locale service provider.
|
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 |