DisplayOptions.PluralCategory
public
static
final
enum
DisplayOptions.PluralCategory
extends Enum<DisplayOptions.PluralCategory>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.text.DisplayOptions.PluralCategory> | |
↳ | android.icu.text.DisplayOptions.PluralCategory |
Standard CLDR plural category constants. See http://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules
Summary
Enum values | |
---|---|
DisplayOptions.PluralCategory |
FEW
|
DisplayOptions.PluralCategory |
MANY
|
DisplayOptions.PluralCategory |
ONE
|
DisplayOptions.PluralCategory |
OTHER
|
DisplayOptions.PluralCategory |
TWO
|
DisplayOptions.PluralCategory |
UNDEFINED
A possible setting for PluralCategory. |
DisplayOptions.PluralCategory |
ZERO
|
Fields | |
---|---|
public
static
final
List<DisplayOptions.PluralCategory> |
VALUES
Unmodifiable List of all plural categories constants. |
Public methods | |
---|---|
static
DisplayOptions.PluralCategory
|
fromIdentifier(String identifier)
|
String
|
getIdentifier()
|
static
DisplayOptions.PluralCategory
|
valueOf(String name)
|
static
final
PluralCategory[]
|
values()
|
Inherited methods | |
---|---|
Enum values
UNDEFINED
public static final DisplayOptions.PluralCategory UNDEFINED
A possible setting for PluralCategory. The plural category context to be used is unknown (this is the default value).
Fields
VALUES
public static final List<DisplayOptions.PluralCategory> VALUES
Unmodifiable List of all plural categories constants. List version of values()
.
Public methods
fromIdentifier
public static DisplayOptions.PluralCategory fromIdentifier (String identifier)
Parameters | |
---|---|
identifier |
String : in lower case such as "few" or "other" |
Returns | |
---|---|
DisplayOptions.PluralCategory |
the plural category corresponding to the identifier, or UNDEFINED |
getIdentifier
public String getIdentifier ()
Returns | |
---|---|
String |
the lowercase CLDR keyword string for the plural category |
valueOf
public static DisplayOptions.PluralCategory valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
DisplayOptions.PluralCategory |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-06-18 UTC.