it.amattioli.encapsulate.dates
Enum DatesErrorMessages
java.lang.Object
java.lang.Enum<DatesErrorMessages>
it.amattioli.encapsulate.dates.DatesErrorMessages
- All Implemented Interfaces:
- Serializable, Comparable<DatesErrorMessages>
public enum DatesErrorMessages
- extends Enum<DatesErrorMessages>
NULL_DURATION_BEGIN
public static final DatesErrorMessages NULL_DURATION_BEGIN
NULL_DURATION_END
public static final DatesErrorMessages NULL_DURATION_END
INVALID_MONTH
public static final DatesErrorMessages INVALID_MONTH
INVALID_DAY
public static final DatesErrorMessages INVALID_DAY
values
public static DatesErrorMessages[] 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 (DatesErrorMessages c : DatesErrorMessages.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DatesErrorMessages 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
getMessage
public String getMessage()
getMessage
public String getMessage(String... params)
Copyright © 2011. All Rights Reserved.