Enum CalendarUtilConstants
- java.lang.Object
-
- java.lang.Enum<CalendarUtilConstants>
-
- io.mosip.kernel.core.util.constant.CalendarUtilConstants
-
- All Implemented Interfaces:
Serializable,Comparable<CalendarUtilConstants>
public enum CalendarUtilConstants extends Enum<CalendarUtilConstants>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARITHMETIC_EXCEPTION_CODEDATE_NULL_MESSAGEILLEGAL_ARGUMENT_CODEILLEGAL_ARGUMENT_MESSAGENULL_ARGUMENT_CODEYEAR_OVERFLOW_MESSAGE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()static CalendarUtilConstantsvalueOf(String name)Returns the enum constant of this type with the specified name.static CalendarUtilConstants[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ILLEGAL_ARGUMENT_CODE
public static final CalendarUtilConstants ILLEGAL_ARGUMENT_CODE
-
ARITHMETIC_EXCEPTION_CODE
public static final CalendarUtilConstants ARITHMETIC_EXCEPTION_CODE
-
NULL_ARGUMENT_CODE
public static final CalendarUtilConstants NULL_ARGUMENT_CODE
-
ILLEGAL_ARGUMENT_MESSAGE
public static final CalendarUtilConstants ILLEGAL_ARGUMENT_MESSAGE
-
YEAR_OVERFLOW_MESSAGE
public static final CalendarUtilConstants YEAR_OVERFLOW_MESSAGE
-
DATE_NULL_MESSAGE
public static final CalendarUtilConstants DATE_NULL_MESSAGE
-
-
Method Detail
-
values
public static CalendarUtilConstants[] 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 (CalendarUtilConstants c : CalendarUtilConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CalendarUtilConstants 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
-
getErrorCode
public String getErrorCode()
-
-