Package org.cyclos.model.utils
Enum RecurringTaskRecurrence
- java.lang.Object
-
- java.lang.Enum<RecurringTaskRecurrence>
-
- org.cyclos.model.utils.RecurringTaskRecurrence
-
- All Implemented Interfaces:
Serializable,Comparable<RecurringTaskRecurrence>,HasMessageKey
public enum RecurringTaskRecurrence extends Enum<RecurringTaskRecurrence> implements HasMessageKey
Default recurring task recurrence. If a recurring task is not manually awakened for execution then it will be automatically awakened according to its recurrence.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVERY_DAYEVERY_HALF_HOUREVERY_HOUREVERY_MINUTENEXT_DAYNEXT_HOUR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()intgetSeconds()static RecurringTaskRecurrencevalueOf(String name)Returns the enum constant of this type with the specified name.static RecurringTaskRecurrence[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVERY_MINUTE
public static final RecurringTaskRecurrence EVERY_MINUTE
-
EVERY_HALF_HOUR
public static final RecurringTaskRecurrence EVERY_HALF_HOUR
-
NEXT_HOUR
public static final RecurringTaskRecurrence NEXT_HOUR
-
EVERY_HOUR
public static final RecurringTaskRecurrence EVERY_HOUR
-
NEXT_DAY
public static final RecurringTaskRecurrence NEXT_DAY
-
EVERY_DAY
public static final RecurringTaskRecurrence EVERY_DAY
-
-
Method Detail
-
values
public static RecurringTaskRecurrence[] 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 (RecurringTaskRecurrence c : RecurringTaskRecurrence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RecurringTaskRecurrence 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
getSeconds
public int getSeconds()
-
-