public static enum AdRequest.Gender extends Enum<AdRequest.Gender>
Enum Constant and Description |
---|
FEMALE
Female gender.
|
MALE
Male gender.
|
UNKNOWN
Unknown gender.
|
Modifier and Type | Method and Description |
---|---|
static AdRequest.Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdRequest.Gender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdRequest.Gender UNKNOWN
public static final AdRequest.Gender MALE
public static final AdRequest.Gender FEMALE
public static AdRequest.Gender[] values()
for (AdRequest.Gender c : AdRequest.Gender.values()) System.out.println(c);
public static AdRequest.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 null