public enum StandardPlural extends Enum<StandardPlural>
Enum.EnumDesc<E extends Enum<E>>| Enum Constant and Description |
|---|
EQ_0 |
EQ_1 |
FEW |
MANY |
ONE |
OTHER |
TWO |
ZERO |
| Modifier and Type | Field and Description |
|---|---|
static int |
COUNT
Number of standard plural forms/categories.
|
static int |
OTHER_INDEX
Numeric index of OTHER, same as OTHER.ordinal().
|
static List<StandardPlural> |
VALUES
Unmodifiable List of all standard plural form constants.
|
| Modifier and Type | Method and Description |
|---|---|
static StandardPlural |
fromString(CharSequence keyword) |
String |
getKeyword() |
static int |
indexFromString(CharSequence keyword) |
static int |
indexOrNegativeFromString(CharSequence keyword) |
static int |
indexOrOtherIndexFromString(CharSequence keyword) |
static StandardPlural |
orNullFromString(CharSequence keyword) |
static StandardPlural |
orOtherFromString(CharSequence keyword) |
static StandardPlural |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardPlural[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardPlural ZERO
public static final StandardPlural ONE
public static final StandardPlural TWO
public static final StandardPlural FEW
public static final StandardPlural MANY
public static final StandardPlural OTHER
public static final StandardPlural EQ_0
public static final StandardPlural EQ_1
public static final int OTHER_INDEX
public static final List<StandardPlural> VALUES
StandardPlural.values().public static final int COUNT
public static StandardPlural[] values()
public static StandardPlural valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final String getKeyword()
public static final StandardPlural orNullFromString(CharSequence keyword)
keyword - for example "few" or "other"public static final StandardPlural orOtherFromString(CharSequence keyword)
keyword - for example "few" or "other"public static final StandardPlural fromString(CharSequence keyword)
keyword - for example "few" or "other"IllegalArgumentException - if the keyword is not a plural formpublic static final int indexOrNegativeFromString(CharSequence keyword)
keyword - for example "few" or "other"public static final int indexOrOtherIndexFromString(CharSequence keyword)
keyword - for example "few" or "other"public static final int indexFromString(CharSequence keyword)
keyword - for example "few" or "other"IllegalArgumentException - if the keyword is not a plural form