Package com.ibm.icu.util
Enum GenderInfo.ListGenderStyle
- All Implemented Interfaces:
Serializable
,Comparable<GenderInfo.ListGenderStyle>
,java.lang.constant.Constable
- Enclosing class:
GenderInfo
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.This API is ICU internal only.Deprecated.This API is ICU internal only.Deprecated.This API is ICU internal only. -
Method Summary
Modifier and TypeMethodDescriptionstatic GenderInfo.ListGenderStyle
Deprecated.This API is ICU internal only.static GenderInfo.ListGenderStyle
Deprecated.Returns the enum constant of this type with the specified name.static GenderInfo.ListGenderStyle[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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.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.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
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
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 nameNullPointerException
- if the argument is null
-
fromName
Deprecated.This API is ICU internal only.
-