public interface NumberSymbolProvider
This SPI-interface enables the access to localized
number properties like zero digits and is instantiated via a
ServiceLoader-mechanism.
If there is no external NumberSymbolProvider then Time4J will
just delegate to the JDK.
Specification: Implementations must have a public no-arg constructor.
ServiceLoader,
DecimalFormatSymbols.getZeroDigit()| Modifier and Type | Field and Description |
|---|---|
static NumberSymbolProvider |
DEFAULT
Default provider which delegates to standard JVM resources.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Locale[] |
getAvailableLocales()
Yields the supported languages.
|
char |
getDecimalSeparator(java.util.Locale locale)
Returns the localized decimal separator.
|
java.lang.String |
getMinusSign(java.util.Locale locale)
Returns the localized minus sign.
|
char |
getZeroDigit(java.util.Locale locale)
Returns the localized zero digit.
|
static final NumberSymbolProvider DEFAULT
Default provider which delegates to standard JVM resources.
DecimalFormatSymbolsjava.util.Locale[] getAvailableLocales()
Yields the supported languages.
char getZeroDigit(java.util.Locale locale)
Returns the localized zero digit.
locale - language and country settingchar getDecimalSeparator(java.util.Locale locale)
Returns the localized decimal separator.
locale - language and country settingjava.lang.String getMinusSign(java.util.Locale locale)
Returns the localized minus sign.
locale - language and country setting