public static enum YtGender.Value extends java.lang.Enum<YtGender.Value>
Modifier and Type | Method and Description |
---|---|
static YtGender.Value |
fromId(java.lang.String id)
Returns the value corresponding to an id.
|
java.lang.String |
getId()
Returns a one-letter identifier.
|
static YtGender.Value |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static YtGender.Value[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YtGender.Value MALE
public static final YtGender.Value FEMALE
public static YtGender.Value[] values()
for (YtGender.Value c : YtGender.Value.values()) System.out.println(c);
public static YtGender.Value 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 java.lang.String getId()
public static YtGender.Value fromId(java.lang.String id)
id
- identifier, 'm' or 'f'