org.jmrtd.lds
Enum FaceInfo.HairColor
java.lang.Object
java.lang.Enum<FaceInfo.HairColor>
org.jmrtd.lds.FaceInfo.HairColor
- All Implemented Interfaces:
- Serializable, Comparable<FaceInfo.HairColor>
- Enclosing class:
- FaceInfo
public static enum FaceInfo.HairColor
- extends Enum<FaceInfo.HairColor>
Hair color code based on Section 5.5.5 of ISO 19794-5.
UNSPECIFIED
public static final FaceInfo.HairColor UNSPECIFIED
BALD
public static final FaceInfo.HairColor BALD
BLACK
public static final FaceInfo.HairColor BLACK
BLONDE
public static final FaceInfo.HairColor BLONDE
BROWN
public static final FaceInfo.HairColor BROWN
GRAY
public static final FaceInfo.HairColor GRAY
WHITE
public static final FaceInfo.HairColor WHITE
RED
public static final FaceInfo.HairColor RED
GREEN
public static final FaceInfo.HairColor GREEN
BLUE
public static final FaceInfo.HairColor BLUE
UNKNOWN
public static final FaceInfo.HairColor UNKNOWN
values
public static FaceInfo.HairColor[] 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 (FaceInfo.HairColor c : FaceInfo.HairColor.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FaceInfo.HairColor valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null