Enum Class USADriveIdEyeColor
- All Implemented Interfaces:
Serializable,Comparable<USADriveIdEyeColor>,Constable
Enum for Eye Color in the US Driver's License
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBLK - Black or very dark brown.BLU - Blue color.BRO - Brown, including amber.GRY - Gray color.GRN - Green color.HAZ - Hazel, a mixture of colors, most commonly green and brown.MAR - Maroon color.DIC - Dichromatic or multicolor, of one or both eyes.Not filled - equal to NONEPNK - Pink or albinoUNK - Unknown / Other -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()static USADriveIdEyeColorReturns the enum constant of this class with the specified name.static USADriveIdEyeColor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_INFO
Not filled - equal to NONE
-
BLACK
BLK - Black or very dark brown.
-
BLUE
BLU - Blue color.
-
BROWN
BRO - Brown, including amber.
-
MULTI_COLOR
DIC - Dichromatic or multicolor, of one or both eyes.
-
GRAY
GRY - Gray color.
-
GREEN
GRN - Green color.
-
HAZEL
HAZ - Hazel, a mixture of colors, most commonly green and brown.
-
MAROON
MAR - Maroon color.
-
PINK
PNK - Pink or albino
-
UNKNOWN
UNK - Unknown / Other
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
-