Enum RaceEnum

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

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

      • AMERICAN_INDIAN_OR_ALASKAN_NATIVE

        public static final RaceEnum AMERICAN_INDIAN_OR_ALASKAN_NATIVE
      • ASIAN

        public static final RaceEnum ASIAN
      • BLACK_OR_AFRICAN_AMERICAN

        public static final RaceEnum BLACK_OR_AFRICAN_AMERICAN
      • HISPANIC_OR_LATINO

        public static final RaceEnum HISPANIC_OR_LATINO
      • WHITE

        public static final RaceEnum WHITE
      • NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER

        public static final RaceEnum NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER
      • TWO_OR_MORE_RACES

        public static final RaceEnum TWO_OR_MORE_RACES
      • DECLINE_TO_SELF_IDENTIFY

        public static final RaceEnum DECLINE_TO_SELF_IDENTIFY
    • Method Detail

      • values

        public static RaceEnum[] 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 (RaceEnum c : RaceEnum.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RaceEnum 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<RaceEnum>