public enum Ethnicity extends Enum<Ethnicity>
| Enum Constant and Description |
|---|
BLACK |
CAUCASIAN |
EAST_ASIAN |
HISPANIC_LATINO |
JAPANESE |
MIDDLE_EASTERN |
MIXED_RACE_PERSON |
MULTIETHNIC_GROUP |
NATIVE_AMERICAN_FIRST_NATIONS |
PACIFIC_ISLANDER |
SOUTH_ASIAN |
SOUTHEAST_ASIAN |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static Ethnicity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ethnicity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ethnicity BLACK
public static final Ethnicity CAUCASIAN
public static final Ethnicity EAST_ASIAN
public static final Ethnicity HISPANIC_LATINO
public static final Ethnicity JAPANESE
public static final Ethnicity MIDDLE_EASTERN
public static final Ethnicity MIXED_RACE_PERSON
public static final Ethnicity MULTIETHNIC_GROUP
public static final Ethnicity NATIVE_AMERICAN_FIRST_NATIONS
public static final Ethnicity PACIFIC_ISLANDER
public static final Ethnicity SOUTH_ASIAN
public static final Ethnicity SOUTHEAST_ASIAN
public static Ethnicity[] values()
for (Ethnicity c : Ethnicity.values()) System.out.println(c);
public static Ethnicity 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.