Package com.ibm.icu.text
Enum DisplayOptions.NounClass
- All Implemented Interfaces:
Serializable
,Comparable<DisplayOptions.NounClass>
,java.lang.constant.Constable
- Enclosing class:
DisplayOptions
Represents all the grammatical noun classes that are supported by CLDR.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List
<DisplayOptions.NounClass> Unmodifiable List of all noun classes constants. -
Method Summary
Modifier and TypeMethodDescriptionstatic final DisplayOptions.NounClass
fromIdentifier
(String identifier) final String
static DisplayOptions.NounClass
Returns the enum constant of this type with the specified name.static DisplayOptions.NounClass[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
A possible setting for NounClass. The noun class context to be used is unknown (this is the default value). -
OTHER
-
NEUTER
-
FEMININE
-
MASCULINE
-
ANIMATE
-
INANIMATE
-
PERSONAL
-
COMMON
-
-
Field Details
-
VALUES
Unmodifiable List of all noun classes constants. List version ofvalues()
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getIdentifier
- Returns:
- the lowercase CLDR keyword string for the noun class.
-
fromIdentifier
- Parameters:
identifier
- in lower case such as "feminine" or "masculine"- Returns:
- the plural category corresponding to the identifier, or
UNDEFINED
-