Package com.uc4.communication.requests
Enum TaskList.DateRange
- java.lang.Object
-
- java.lang.Enum<TaskList.DateRange>
-
- com.uc4.communication.requests.TaskList.DateRange
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TaskList.DateRange>
- Enclosing class:
- TaskList
public static enum TaskList.DateRange extends java.lang.Enum<TaskList.DateRange>
Type of the time frame in a combined task selection.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVATION
Returns a task if its activation time falls into the specified time frame.END
Returns a task if its end time falls into the specified time frame.NONE
No date selection.RUNNING
Returns a task if it is/was running within the specified time frame.START
Returns a task if its start time falls into the specified time frame.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskList.DateRange
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TaskList.DateRange[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final TaskList.DateRange NONE
No date selection.
-
ACTIVATION
public static final TaskList.DateRange ACTIVATION
Returns a task if its activation time falls into the specified time frame.
-
START
public static final TaskList.DateRange START
Returns a task if its start time falls into the specified time frame.
-
END
public static final TaskList.DateRange END
Returns a task if its end time falls into the specified time frame.
-
RUNNING
public static final TaskList.DateRange RUNNING
Returns a task if it is/was running within the specified time frame.
-
-
Method Detail
-
values
public static TaskList.DateRange[] 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 (TaskList.DateRange c : TaskList.DateRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskList.DateRange 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
-
-