public static enum YtGender.Value extends Enum<YtGender.Value>
| Modifier and Type | Method and Description |
|---|---|
static YtGender.Value |
fromId(String id)
Returns the value corresponding to an id.
|
String |
getId()
Returns a one-letter identifier.
|
static YtGender.Value |
valueOf(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(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 String getId()
public static YtGender.Value fromId(String id)
id - identifier, 'm' or 'f'Copyright © 2012. All Rights Reserved.