Enum EthnicityEnum

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EthnicityEnum>

    public enum EthnicityEnum
    extends java.lang.Enum<EthnicityEnum>
    • Enum Constant Detail

      • AMERICAN_INDIAN_OR_ALASKA_NATIVE

        public static final EthnicityEnum AMERICAN_INDIAN_OR_ALASKA_NATIVE
      • ASIAN_OR_INDIAN_SUBCONTINENT

        public static final EthnicityEnum ASIAN_OR_INDIAN_SUBCONTINENT
      • BLACK_OR_AFRICAN_AMERICAN

        public static final EthnicityEnum BLACK_OR_AFRICAN_AMERICAN
      • HISPANIC_OR_LATINO

        public static final EthnicityEnum HISPANIC_OR_LATINO
      • NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER

        public static final EthnicityEnum NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER
      • TWO_OR_MORE_RACES

        public static final EthnicityEnum TWO_OR_MORE_RACES
      • PREFER_NOT_TO_DISCLOSE

        public static final EthnicityEnum PREFER_NOT_TO_DISCLOSE
    • Method Detail

      • values

        public static EthnicityEnum[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EthnicityEnum c : EthnicityEnum.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EthnicityEnum valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<EthnicityEnum>