public enum GenderType extends java.lang.Enum<GenderType>
Enum Constant and Description |
---|
FEMALE
Female.
|
MALE
Male.
|
UNKNOWN
Unknown.
|
Modifier and Type | Method and Description |
---|---|
static GenderType |
fromInteger(int x)
From integer.
|
static GenderType |
fromString(java.lang.String x) |
static GenderType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GenderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenderType UNKNOWN
public static final GenderType FEMALE
public static final GenderType MALE
public static GenderType[] values()
for (GenderType c : GenderType.values()) System.out.println(c);
public static GenderType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static GenderType fromInteger(int x)
x
- the xpublic static GenderType fromString(java.lang.String x)