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

FEW

Added in API level 35
public static final DisplayOptions.PluralCategory FEW

MANY

Added in API level 35
public static final DisplayOptions.PluralCategory MANY

ONE

Added in API level 35
public static final DisplayOptions.PluralCategory ONE

OTHER

Added in API level 35
public static final DisplayOptions.PluralCategory OTHER

TWO

Added in API level 35
public static final DisplayOptions.PluralCategory TWO

UNDEFINED

Added in API level 35
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).

ZERO

Added in API level 35
public static final DisplayOptions.PluralCategory ZERO

Fields

VALUES

Added in API level 35
public static final List<DisplayOptions.PluralCategory> VALUES

Unmodifiable List of all plural categories constants. List version of values().

Public methods

fromIdentifier

Added in API level 35
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

Added in API level 35
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

values

public static final PluralCategory[] values ()

Returns
PluralCategory[]