Enum MonthlyDay

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MonthlyDay>

    public enum MonthlyDay
    extends java.lang.Enum<MonthlyDay>
    For a monthly repeat interval this determines the day of the month for the execution.

    Since taskplanner 22.4 this is also used for the custom repeat interval with monthly rhythm.

    Since:
    taskplanner 3.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FIRST
      The first day of the month is used
      FOURTH
      The fourth day of the month is used
      INITIAL
      The day of month from the startDate is used
      LAST
      The last day of the month is used.
      SECOND
      The second day of the month is used
      THIRD
      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.
      • 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

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