Enum 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 name
        java.lang.NullPointerException - if the argument is null