public interface PluralRule
| Modifier and Type | Interface and Description |
|---|---|
static class |
PluralRule.PluralForm
Information about the plural forms supported by this rule which will be used during code
generation and by tools to provide information to translators.
|
| Modifier and Type | Method and Description |
|---|---|
PluralRule.PluralForm[] |
pluralForms()
Returns the list of values which are valid for this rule.
|
int |
select(int n)
Returns the plural form appropriate for this count.
|
PluralRule.PluralForm[] pluralForms()
This method will be executed at compile time and may not contain any references, even indirectly, to JSNI methods.
int select(int n)
This method will be executed at runtime, so must be translatable.
n - count of items to choose plural form forCopyright © 2018–2020. All rights reserved.