public interface PluralProvider
This SPI-interface enables the access to localized
plural rules and is instantiated via a ServiceLoader-mechanism.
If there is no external PluralProvider then Time4J will use
an internal implementation which only supports English and else yield
very simplified standard plural rules which might be incorrect. If
applications need true i18n-support then the i18n-module should be used
which has a general implementation of this interface.
ServiceLoader| Modifier and Type | Method and Description |
|---|---|
PluralRules |
load(Locale country,
NumberType numType)
Defines the plural rules for given country or language.
|
PluralRules load(Locale country, NumberType numType)
Defines the plural rules for given country or language.
country - country or regionnumType - numerical categoryPluralRules-instance (maybe a default setting)Copyright © 2014–2017. All rights reserved.