Package org.jmrtd.lds.iso19794
Enum FaceImageInfo.EyeColor
- java.lang.Object
-
- java.lang.Enum<FaceImageInfo.EyeColor>
-
- org.jmrtd.lds.iso19794.FaceImageInfo.EyeColor
-
- All Implemented Interfaces:
Serializable
,Comparable<FaceImageInfo.EyeColor>
- Enclosing class:
- FaceImageInfo
public static enum FaceImageInfo.EyeColor extends Enum<FaceImageInfo.EyeColor>
Eye color code based on Section 5.5.4 of ISO 19794-5.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLACK
BLUE
BROWN
GRAY
GREEN
MULTI_COLORED
PINK
UNKNOWN
UNSPECIFIED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
toInt()
Returns the integer code to use in ISO19794-5 encoding for this color.static FaceImageInfo.EyeColor
valueOf(String name)
Returns the enum constant of this type with the specified name.static FaceImageInfo.EyeColor[]
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.EyeColor UNSPECIFIED
-
BLACK
public static final FaceImageInfo.EyeColor BLACK
-
BLUE
public static final FaceImageInfo.EyeColor BLUE
-
BROWN
public static final FaceImageInfo.EyeColor BROWN
-
GRAY
public static final FaceImageInfo.EyeColor GRAY
-
GREEN
public static final FaceImageInfo.EyeColor GREEN
-
MULTI_COLORED
public static final FaceImageInfo.EyeColor MULTI_COLORED
-
PINK
public static final FaceImageInfo.EyeColor PINK
-
UNKNOWN
public static final FaceImageInfo.EyeColor UNKNOWN
-
-
Method Detail
-
values
public static FaceImageInfo.EyeColor[] 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.EyeColor c : FaceImageInfo.EyeColor.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.EyeColor 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 nameNullPointerException
- if the argument is null
-
toInt
public int toInt()
Returns the integer code to use in ISO19794-5 encoding for this color.- Returns:
- the integer code
-
-