Package com.ibm.icu.text
Enum DisplayOptions.NounClass
- java.lang.Object
-
- java.lang.Enum<DisplayOptions.NounClass>
-
- com.ibm.icu.text.DisplayOptions.NounClass
-
- All Implemented Interfaces:
Serializable
,Comparable<DisplayOptions.NounClass>
- Enclosing class:
- DisplayOptions
public static enum DisplayOptions.NounClass extends Enum<DisplayOptions.NounClass>
Represents all the grammatical noun classes that are supported by CLDR.- Status:
- Stable ICU 72.
-
-
Field Summary
Fields Modifier and Type Field Description static List<DisplayOptions.NounClass>
VALUES
Unmodifiable List of all noun classes constants.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisplayOptions.NounClass
fromIdentifier(String identifier)
String
getIdentifier()
static DisplayOptions.NounClass
valueOf(String name)
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 Detail
-
UNDEFINED
public static final DisplayOptions.NounClass UNDEFINED
A possible setting for NounClass. The noun class context to be used is unknown (this is the default value).- Status:
- Stable ICU 72.
-
OTHER
public static final DisplayOptions.NounClass OTHER
- Status:
- Stable ICU 72.
-
NEUTER
public static final DisplayOptions.NounClass NEUTER
- Status:
- Stable ICU 72.
-
FEMININE
public static final DisplayOptions.NounClass FEMININE
- Status:
- Stable ICU 72.
-
MASCULINE
public static final DisplayOptions.NounClass MASCULINE
- Status:
- Stable ICU 72.
-
ANIMATE
public static final DisplayOptions.NounClass ANIMATE
- Status:
- Stable ICU 72.
-
INANIMATE
public static final DisplayOptions.NounClass INANIMATE
- Status:
- Stable ICU 72.
-
PERSONAL
public static final DisplayOptions.NounClass PERSONAL
- Status:
- Stable ICU 72.
-
COMMON
public static final DisplayOptions.NounClass COMMON
- Status:
- Stable ICU 72.
-
-
Field Detail
-
VALUES
public static final List<DisplayOptions.NounClass> VALUES
Unmodifiable List of all noun classes constants. List version ofvalues()
.- Status:
- Stable ICU 72.
-
-
Method Detail
-
values
public static DisplayOptions.NounClass[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DisplayOptions.NounClass c : DisplayOptions.NounClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisplayOptions.NounClass valueOf(String name)
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
public final String getIdentifier()
- Returns:
- the lowercase CLDR keyword string for the noun class.
- Status:
- Stable ICU 72.
-
fromIdentifier
public static final DisplayOptions.NounClass fromIdentifier(String identifier)
- Parameters:
identifier
- in lower case such as "feminine" or "masculine"- Returns:
- the plural category corresponding to the identifier, or
UNDEFINED
- Status:
- Stable ICU 72.
-
-