Enum ContractMinutesViolation.Type
- java.lang.Object
-
- java.lang.Enum<ContractMinutesViolation.Type>
-
- org.optaweb.employeerostering.domain.violation.ContractMinutesViolation.Type
-
- All Implemented Interfaces:
Serializable,Comparable<ContractMinutesViolation.Type>
- Enclosing class:
- ContractMinutesViolation
public static enum ContractMinutesViolation.Type extends Enum<ContractMinutesViolation.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContractMinutesViolation.TypegetTypeForViolation(String constraintName)StringtoString()static ContractMinutesViolation.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static ContractMinutesViolation.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY
public static final ContractMinutesViolation.Type DAY
-
WEEK
public static final ContractMinutesViolation.Type WEEK
-
MONTH
public static final ContractMinutesViolation.Type MONTH
-
YEAR
public static final ContractMinutesViolation.Type YEAR
-
-
Method Detail
-
values
public static ContractMinutesViolation.Type[] 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 (ContractMinutesViolation.Type c : ContractMinutesViolation.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContractMinutesViolation.Type 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
-
getTypeForViolation
public static ContractMinutesViolation.Type getTypeForViolation(String constraintName)
-
toString
public String toString()
- Overrides:
toStringin classEnum<ContractMinutesViolation.Type>
-
-