Enum DOBType
- java.lang.Object
-
- java.lang.Enum<DOBType>
-
- io.mosip.authentication.common.service.impl.match.DOBType
-
- All Implemented Interfaces:
Serializable,Comparable<DOBType>
public enum DOBType extends Enum<DOBType>
The Enum DOBType.- Author:
- Manoj SP
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROXIMATEThe approximate.DECLAREDThe declared.VERIFIEDThe verified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDobType()Gets the dob type.static Optional<DOBType>getType(String dobType)Gets the type.static BooleanisTypePresent(String dobType)Checks if is type present.static DOBTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DOBType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static DOBType[] 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 (DOBType c : DOBType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DOBType 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
-
getDobType
public String getDobType()
Gets the dob type.- Returns:
- the dob type
-
isTypePresent
public static Boolean isTypePresent(String dobType)
Checks if is type present.- Parameters:
dobType- the dob type- Returns:
- the boolean
-
-