Package com.ibm.icu.impl.number.range
Class StandardPluralRanges
java.lang.Object
com.ibm.icu.impl.number.range.StandardPluralRanges
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StandardPluralRanges
An empty StandardPluralRanges instance.(package private) StandardPlural[]
An immutable map from language codes to set IDs.(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addPluralRange
(StandardPlural first, StandardPlural second, StandardPlural result) Used for data loading.static StandardPluralRanges
Create a StandardPluralRanges based on locale.static StandardPluralRanges
Create a StandardPluralRanges based on set name.private static void
getPluralRangesData
(String set, StandardPluralRanges out) static String
getSetForLocale
(ULocale locale) Get the set name from the locale.resolve
(StandardPlural first, StandardPlural second) private void
setCapacity
(int length) Used for data loading.
-
Field Details
-
flatTriples
StandardPlural[] flatTriples -
numTriples
int numTriples -
languageToSet
An immutable map from language codes to set IDs. Pre-computed and cached in Java since it is used as a cache key for PluralRules. -
DEFAULT
An empty StandardPluralRanges instance.
-
-
Constructor Details
-
StandardPluralRanges
private StandardPluralRanges()
-
-
Method Details
-
getLanguageToSet
-
getPluralRangesData
-
forLocale
Create a StandardPluralRanges based on locale. -
forSet
Create a StandardPluralRanges based on set name. -
getSetForLocale
Get the set name from the locale. -
addPluralRange
Used for data loading. -
setCapacity
private void setCapacity(int length) Used for data loading. -
resolve
-