Enum DisplayOptions.NounClass

java.lang.Object
java.lang.Enum<DisplayOptions.NounClass>
com.ibm.icu.text.DisplayOptions.NounClass
All Implemented Interfaces:
Serializable, Comparable<DisplayOptions.NounClass>, java.lang.constant.Constable
Enclosing class:
DisplayOptions

public static enum DisplayOptions.NounClass extends Enum<DisplayOptions.NounClass>
Represents all the grammatical noun classes that are supported by CLDR.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static DisplayOptions.NounClass[] 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

      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 name
      NullPointerException - if the argument is null
    • getIdentifier

      public final String getIdentifier()
      Returns:
      the lowercase CLDR keyword string for the noun class.
    • 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