public enum Ethnicity extends Enum<Ethnicity>
Enum Constant and Description |
---|
AMERICAN_INDIAN_OR_ALASKAN_NATIVE |
ASIAN |
BLACK_OR_AFRICAN_AMERICAN |
HISPANIC_OR_LATINO |
N_A |
NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER |
TWO_OR_MORE_RACES |
WHITE |
Modifier and Type | Method and Description |
---|---|
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 WHITE
public static final Ethnicity AMERICAN_INDIAN_OR_ALASKAN_NATIVE
public static final Ethnicity BLACK_OR_AFRICAN_AMERICAN
public static final Ethnicity ASIAN
public static final Ethnicity HISPANIC_OR_LATINO
public static final Ethnicity TWO_OR_MORE_RACES
public static final Ethnicity N_A
public static final Ethnicity NATIVE_HAWAIIAN_OR_PACIFIC_ISLANDER
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 © 2010–2016. All rights reserved.