public static enum FirstNameRandomField.Gender extends Enum<FirstNameRandomField.Gender>
Enum Constant and Description |
---|
BOTH
Value to use all kinds of names.
|
FEMALE
Value to use female and unisex names.
|
MALE
Value to use male and unisex names.
|
NEITHER
Value to use unisex names only.
|
Modifier and Type | Method and Description |
---|---|
static FirstNameRandomField.Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FirstNameRandomField.Gender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FirstNameRandomField.Gender MALE
public static final FirstNameRandomField.Gender FEMALE
public static final FirstNameRandomField.Gender NEITHER
public static final FirstNameRandomField.Gender BOTH
public static FirstNameRandomField.Gender[] values()
for (FirstNameRandomField.Gender c : FirstNameRandomField.Gender.values()) System.out.println(c);
public static FirstNameRandomField.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 © 2020. All rights reserved.