Top Description Fields Constructors Methods
com.ibm.icu.impl

public final Enum StandardPlural

extends Enum<StandardPlural>
Class Inheritance
Imports
java.util.Arrays, .Collections, .List

Standard CLDR plural form/category constants. See http://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules

Field Summary

Modifier and TypeField and Description
public static final int
COUNT

Number of standard plural forms/categories.

public static final StandardPlural
public static final StandardPlural
public static final StandardPlural
private final String
public static final StandardPlural
public static final StandardPlural
public static final StandardPlural
public static final int
OTHER_INDEX

Numeric index of OTHER, same as OTHER.ordinal().

public static final StandardPlural
public static final List<StandardPlural>
VALUES

Unmodifiable List of all standard plural form constants.

public static final StandardPlural

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static final StandardPlural

Returns:

the plural form corresponding to the keyword
fromString
(CharSequence
for example "few" or "other"
keyword
)

public final String

Returns:

the lowercase CLDR keyword string for the plural form
getKeyword
()

public static final int

Returns:

the index of the plural form corresponding to the keyword
indexFromString
(CharSequence
for example "few" or "other"
keyword
)

public static final int

Returns:

the index of the plural form corresponding to the keyword, or a negative value
indexOrNegativeFromString
(CharSequence
for example "few" or "other"
keyword
)

public static final int

Returns:

the index of the plural form corresponding to the keyword, or OTHER_INDEX
indexOrOtherIndexFromString
(CharSequence
for example "few" or "other"
keyword
)

public static final StandardPlural

Returns:

the plural form corresponding to the keyword, or null
orNullFromString
(CharSequence
for example "few" or "other"
keyword
)

public static final StandardPlural

Returns:

the plural form corresponding to the keyword, or OTHER
orOtherFromString
(CharSequence
for example "few" or "other"
keyword
)

public static StandardPlural
public static StandardPlural[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COUNTback to summary
public static final int COUNT

Number of standard plural forms/categories.

EQ_0back to summary
public static final StandardPlural EQ_0
EQ_1back to summary
public static final StandardPlural EQ_1
FEWback to summary
public static final StandardPlural FEW
keywordback to summary
private final String keyword
MANYback to summary
public static final StandardPlural MANY
ONEback to summary
public static final StandardPlural ONE
OTHERback to summary
public static final StandardPlural OTHER
OTHER_INDEXback to summary
public static final int OTHER_INDEX

Numeric index of OTHER, same as OTHER.ordinal().

TWOback to summary
public static final StandardPlural TWO
VALUESback to summary
public static final List<StandardPlural> VALUES

Unmodifiable List of all standard plural form constants. List version of values().

ZEROback to summary
public static final StandardPlural ZERO

Constructor Detail

StandardPluralback to summary
private StandardPlural(String kw)

Method Detail

fromStringback to summary
public static final StandardPlural fromString(CharSequence keyword)
Parameters
keyword:CharSequence

for example "few" or "other"

Returns:StandardPlural

the plural form corresponding to the keyword

Exceptions
IllegalArgumentException:
if the keyword is not a plural form
getKeywordback to summary
public final String getKeyword()
Returns:String

the lowercase CLDR keyword string for the plural form

indexFromStringback to summary
public static final int indexFromString(CharSequence keyword)
Parameters
keyword:CharSequence

for example "few" or "other"

Returns:int

the index of the plural form corresponding to the keyword

Exceptions
IllegalArgumentException:
if the keyword is not a plural form
indexOrNegativeFromStringback to summary
public static final int indexOrNegativeFromString(CharSequence keyword)
Parameters
keyword:CharSequence

for example "few" or "other"

Returns:int

the index of the plural form corresponding to the keyword, or a negative value

indexOrOtherIndexFromStringback to summary
public static final int indexOrOtherIndexFromString(CharSequence keyword)
Parameters
keyword:CharSequence

for example "few" or "other"

Returns:int

the index of the plural form corresponding to the keyword, or OTHER_INDEX

orNullFromStringback to summary
public static final StandardPlural orNullFromString(CharSequence keyword)
Parameters
keyword:CharSequence

for example "few" or "other"

Returns:StandardPlural

the plural form corresponding to the keyword, or null

orOtherFromStringback to summary
public static final StandardPlural orOtherFromString(CharSequence keyword)
Parameters
keyword:CharSequence

for example "few" or "other"

Returns:StandardPlural

the plural form corresponding to the keyword, or OTHER

valueOfback to summary
public static StandardPlural valueOf(String name)
valuesback to summary
public static StandardPlural[] values()