com.ibm.icu.util
Enum GenderInfo.ListGenderStyle

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

public static enum GenderInfo.ListGenderStyle
extends Enum<GenderInfo.ListGenderStyle>

Enum only meant for use in CLDR and in testing. Indicates the category for the locale.

Status:
Internal. This API is ICU internal only.

Enum Constant Summary
MALE_TAINTS
          gender(all female) = female, otherwise gender(list) = male.
MIXED_NEUTRAL
          gender(all male) = male, gender(all female) = female, otherwise gender(list) = other.
NEUTRAL
          Always OTHER (if more than one)
 
Method Summary
static GenderInfo.ListGenderStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GenderInfo.ListGenderStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NEUTRAL

public static final GenderInfo.ListGenderStyle NEUTRAL
Always OTHER (if more than one)


MIXED_NEUTRAL

public static final GenderInfo.ListGenderStyle MIXED_NEUTRAL
gender(all male) = male, gender(all female) = female, otherwise gender(list) = other. In particular, any 'other' value makes the overall gender be 'other'.


MALE_TAINTS

public static final GenderInfo.ListGenderStyle MALE_TAINTS
gender(all female) = female, otherwise gender(list) = male. In particular, any 'other' value makes the overall gender be 'male'.

Method Detail

values

public static GenderInfo.ListGenderStyle[] values()
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)
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


Copyright (c) 2012 IBM Corporation and others.