public static enum GenderInfo.ListGenderStyle extends Enum<GenderInfo.ListGenderStyle>
Enum Constant and Description |
---|
MALE_TAINTS
For an empty list, returns OTHER;
For a single item, returns its gender;
Otherwise, gender(all female) = female, otherwise gender(list) = male.
|
MIXED_NEUTRAL
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.
|
NEUTRAL
For an empty list, returns OTHER;
For a single item, returns its gender;
Otherwise always OTHER.
|
Modifier and Type | Method and Description |
---|---|
static GenderInfo.ListGenderStyle |
fromName(String name) |
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.
|
public static final GenderInfo.ListGenderStyle NEUTRAL
public static final GenderInfo.ListGenderStyle MIXED_NEUTRAL
public static final GenderInfo.ListGenderStyle MALE_TAINTS
public static GenderInfo.ListGenderStyle[] values()
for (GenderInfo.ListGenderStyle c : GenderInfo.ListGenderStyle.values()) System.out.println(c);
public static GenderInfo.ListGenderStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static GenderInfo.ListGenderStyle fromName(String name)
Copyright (c) 2013 IBM Corporation and others.