Package com.ibm.icu.util
Enum GenderInfo.ListGenderStyle
- java.lang.Object
-
- java.lang.Enum<GenderInfo.ListGenderStyle>
-
- com.ibm.icu.util.GenderInfo.ListGenderStyle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GenderInfo.ListGenderStyle>
- Enclosing class:
- GenderInfo
@Deprecated public static enum GenderInfo.ListGenderStyle extends java.lang.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 Summary
Enum Constants Enum Constant Description MALE_TAINTS
Deprecated.This API is ICU internal only.MIXED_NEUTRAL
Deprecated.This API is ICU internal only.NEUTRAL
Deprecated.This API is ICU internal only.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,GenderInfo.ListGenderStyle>
fromNameMap
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description private
ListGenderStyle()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static GenderInfo.ListGenderStyle
fromName(java.lang.String name)
Deprecated.This API is ICU internal only.static GenderInfo.ListGenderStyle
valueOf(java.lang.String name)
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 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.
-
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'.
-
-
Field Detail
-
fromNameMap
private static java.util.Map<java.lang.String,GenderInfo.ListGenderStyle> fromNameMap
Deprecated.
-
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromName
@Deprecated public static GenderInfo.ListGenderStyle fromName(java.lang.String name)
Deprecated.This API is ICU internal only.
-
-