Package org.jmrtd.lds.iso19794
Enum FaceImageInfo.HairColor
- java.lang.Object
-
- java.lang.Enum<FaceImageInfo.HairColor>
-
- org.jmrtd.lds.iso19794.FaceImageInfo.HairColor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FaceImageInfo.HairColor>
- Enclosing class:
- FaceImageInfo
public static enum FaceImageInfo.HairColor extends java.lang.Enum<FaceImageInfo.HairColor>
Hair color code based on Section 5.5.5 of ISO 19794-5.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
toInt()
Returns the code for this hair color.static FaceImageInfo.HairColor
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FaceImageInfo.HairColor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final FaceImageInfo.HairColor UNSPECIFIED
-
BALD
public static final FaceImageInfo.HairColor BALD
-
BLACK
public static final FaceImageInfo.HairColor BLACK
-
BLONDE
public static final FaceImageInfo.HairColor BLONDE
-
BROWN
public static final FaceImageInfo.HairColor BROWN
-
GRAY
public static final FaceImageInfo.HairColor GRAY
-
WHITE
public static final FaceImageInfo.HairColor WHITE
-
RED
public static final FaceImageInfo.HairColor RED
-
GREEN
public static final FaceImageInfo.HairColor GREEN
-
BLUE
public static final FaceImageInfo.HairColor BLUE
-
UNKNOWN
public static final FaceImageInfo.HairColor UNKNOWN
-
-
Method Detail
-
values
public static FaceImageInfo.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 (FaceImageInfo.HairColor c : FaceImageInfo.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 FaceImageInfo.HairColor 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 namejava.lang.NullPointerException
- if the argument is null
-
toInt
public int toInt()
Returns the code for this hair color.- Returns:
- the code
-
-