public class SakaiNumberFormatProvider extends NumberFormatProvider
NumberFormatProvider which provides a
localized NumberFormat.| Constructor and Description |
|---|
SakaiNumberFormatProvider() |
| Modifier and Type | Method and Description |
|---|---|
Locale[] |
getAvailableLocales() |
NumberFormat |
getCurrencyInstance(Locale locale) |
protected NumberFormat |
getInstance(String key,
Locale locale)
Returns a new NumberFormat instance for the specified key and locale.
|
NumberFormat |
getIntegerInstance(Locale locale) |
NumberFormat |
getNumberInstance(Locale locale) |
NumberFormat |
getPercentInstance(Locale locale) |
isSupportedLocalepublic Locale[] getAvailableLocales()
getAvailableLocales in class LocaleServiceProviderpublic NumberFormat getCurrencyInstance(Locale locale) throws IllegalArgumentException, NullPointerException
getCurrencyInstance in class NumberFormatProviderIllegalArgumentExceptionNullPointerExceptionpublic NumberFormat getIntegerInstance(Locale locale) throws IllegalArgumentException, NullPointerException
getIntegerInstance in class NumberFormatProviderIllegalArgumentExceptionNullPointerExceptionpublic NumberFormat getNumberInstance(Locale locale) throws IllegalArgumentException, NullPointerException
getNumberInstance in class NumberFormatProviderIllegalArgumentExceptionNullPointerExceptionpublic NumberFormat getPercentInstance(Locale locale) throws IllegalArgumentException, NullPointerException
getPercentInstance in class NumberFormatProviderIllegalArgumentExceptionNullPointerExceptionprotected NumberFormat getInstance(String key, Locale locale) throws IllegalArgumentException, NullPointerException
key - the property key.locale - the desired locale.IllegalArgumentException - if locale isn't available.NullPointerException - if locale is null.Copyright © 2003–2019 Sakai Project. All rights reserved.