public abstract static class PluralRules.Factory extends Object
Constructor and Description |
---|
Factory()
Deprecated.
|
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.
|
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 http://unicode.org/repos/cldr-tmp/trunk/diff/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.public final PluralRules forLocale(ULocale locale)
locale
- the localepublic abstract ULocale[] getAvailableULocales()
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 rulespublic static com.ibm.icu.impl.PluralRulesLoader getDefaultFactory()
public abstract boolean hasOverride(ULocale locale)
Copyright (c) 2013 IBM Corporation and others.