Enum GenderInfo.ListGenderStyle

java.lang.Object
java.lang.Enum<GenderInfo.ListGenderStyle>
com.ibm.icu.util.GenderInfo.ListGenderStyle
All Implemented Interfaces:
Serializable, Comparable<GenderInfo.ListGenderStyle>, java.lang.constant.Constable
Enclosing class:
GenderInfo

@Deprecated public static enum GenderInfo.ListGenderStyle extends Enum<GenderInfo.ListGenderStyle>
Deprecated.
This API is ICU internal only.
Enum only meant for use in CLDR and in testing. Indicates the category for the locale. This only affects gender for lists more than one. For lists of 1 item, the gender of the list always equals the gender of that sole item.
  • Enum Constant Details

    • NEUTRAL

      @Deprecated public static final GenderInfo.ListGenderStyle NEUTRAL
      Deprecated.
      This API is ICU internal only.
      For an empty list, returns OTHER; For a single item, returns its gender; Otherwise always OTHER.
    • MIXED_NEUTRAL

      @Deprecated public static final GenderInfo.ListGenderStyle MIXED_NEUTRAL
      Deprecated.
      This API is ICU internal only.
      For an empty list, returns OTHER; For a single item, returns its gender; Otherwise gender(all male) = male, gender(all female) = female, otherwise gender(list) = other. So any 'other' value makes the overall gender be 'other'.
    • MALE_TAINTS

      @Deprecated public static final GenderInfo.ListGenderStyle MALE_TAINTS
      Deprecated.
      This API is ICU internal only.
      For an empty list, returns OTHER; For a single item, returns its gender; Otherwise, gender(all female) = female, otherwise gender(list) = male. So for more than one item, any 'other' value makes the overall gender be 'male'.
  • Method Details

    • values

      public static GenderInfo.ListGenderStyle[] values()
      Deprecated.
      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 GenderInfo.ListGenderStyle valueOf(String name)
      Deprecated.
      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
    • fromName

      @Deprecated public static GenderInfo.ListGenderStyle fromName(String name)
      Deprecated.
      This API is ICU internal only.