public static enum Wiki.Gender extends Enum<Wiki.Gender>
Enum Constant and Description |
---|
female
The user self-identifies as a female.
|
male
The user self-identifies as a male.
|
unknown
The user has not specified a gender in preferences.
|
Modifier and Type | Method and Description |
---|---|
static Wiki.Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Wiki.Gender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Wiki.Gender male
public static final Wiki.Gender female
public static final Wiki.Gender unknown
public static Wiki.Gender[] values()
for (Wiki.Gender c : Wiki.Gender.values()) System.out.println(c);
public static Wiki.Gender 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 nullCopyright © 2013. All rights reserved.