Enum GenderInfo.ListGenderStyle

  • All Implemented Interfaces:
    Serializable, Comparable<GenderInfo.ListGenderStyle>
    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.
    Status:
    Internal. This API is ICU internal only.
    • Enum Constant Detail

      • 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.
        Status:
        Internal. This API is ICU internal only.
      • 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'.
        Status:
        Internal. This API is ICU internal only.
      • 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'.
        Status:
        Internal. This API is ICU internal only.
    • Method Detail

      • values

        public static GenderInfo.ListGenderStyle[] values()
        Deprecated.
        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 (GenderInfo.ListGenderStyle c : GenderInfo.ListGenderStyle.values())
            System.out.println(c);
        
        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