Enum MonthlyDay
- java.lang.Object
-
- java.lang.Enum<MonthlyDay>
-
- com.inet.taskplanner.server.api.trigger.time.MonthlyDay
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MonthlyDay>
public enum MonthlyDay extends java.lang.Enum<MonthlyDay>
For amonthly
repeat interval this determines the day of the month for the execution.- Since:
- taskplanner 3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIRST
The first day of the month is usedFOURTH
The fourth day of the month is usedINITIAL
The day of month from the startDate is usedLAST
The last day of the month is used.SECOND
The second day of the month is usedTHIRD
The third day of the month is used
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MonthlyDay
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MonthlyDay[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final MonthlyDay INITIAL
The day of month from the startDate is used
-
FIRST
public static final MonthlyDay FIRST
The first day of the month is used
-
SECOND
public static final MonthlyDay SECOND
The second day of the month is used
-
THIRD
public static final MonthlyDay THIRD
The third day of the month is used
-
FOURTH
public static final MonthlyDay FOURTH
The fourth day of the month is used
-
LAST
public static final MonthlyDay LAST
The last day of the month is used. This is always the last day, not depending on how many days the month has.
-
-
Method Detail
-
values
public static MonthlyDay[] 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 (MonthlyDay c : MonthlyDay.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MonthlyDay valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-