Package net.time4j.format
Interface PluralProvider
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.
Note: All implementations must have a public no-arg constructor.
- Since:
- 2.2
- Author:
- Meno Hochschild
- See Also:
ServiceLoader
-
Method Summary
Modifier and TypeMethodDescriptionload(Locale country, NumberType numType)
Defines the plural rules for given country or language.
-
Method Details
-
load
Defines the plural rules for given country or language.
- Parameters:
country
- country or regionnumType
- numerical category- Returns:
PluralRules
-instance (maybe a default setting)- Since:
- 2.2
-