@Deprecated public abstract static class PluralRules.Factory extends Object
Modifier | Constructor and Description |
---|---|
protected |
Factory()
Deprecated.
This API is ICU internal only.
|
Modifier and Type | Method and Description |
---|---|
PluralRules |
forLocale(ULocale locale)
Deprecated.
This API is ICU internal only.
|
abstract PluralRules |
forLocale(ULocale locale,
PluralRules.PluralType type)
Deprecated.
This API is ICU internal only.
|
abstract ULocale[] |
getAvailableULocales()
Deprecated.
This API is ICU internal only.
|
static com.ibm.icu.impl.PluralRulesLoader |
getDefaultFactory()
Deprecated.
This API is ICU internal only.
|
abstract ULocale |
getFunctionalEquivalent(ULocale locale,
boolean[] isAvailable)
Deprecated.
This API is ICU internal only.
|
abstract boolean |
hasOverride(ULocale locale)
Deprecated.
This API is ICU internal only.
|
@Deprecated protected Factory()
@Deprecated public abstract PluralRules forLocale(ULocale locale, PluralRules.PluralType type)
PluralRules
for a given locale and the plural type.
ICU defines plural rules for many locales based on CLDR Language Plural Rules. For these predefined rules, see CLDR page at https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
locale
- The locale for which a PluralRules
object is returned.type
- The plural type (e.g., cardinal or ordinal).PluralRules
object for this locale. If there's no predefined rules for
this locale, the rules for the closest parent in the locale hierarchy that has one will be returned.
The final fallback always returns the default rules.@Deprecated public final PluralRules forLocale(ULocale locale)
locale
- the locale@Deprecated public abstract ULocale[] getAvailableULocales()
@Deprecated public abstract ULocale getFunctionalEquivalent(ULocale locale, boolean[] isAvailable)
locale
- the locale to checkisAvailable
- if not null and of length > 0, this will hold 'true' at index 0 if locale is directly defined
(without fallback) as having plural rules@Deprecated public static com.ibm.icu.impl.PluralRulesLoader getDefaultFactory()
@Deprecated public abstract boolean hasOverride(ULocale locale)
Copyright © 2016 Unicode, Inc. and others.