Class ScheduleCalendarSpec


  • public final class ScheduleCalendarSpec
    extends java.lang.Object
    Specification of when to run an action in relation to calendar time.

    A timestamp matches if at least one range of each field matches except for year. If year is missing, that means all years match. For all fields besides year, at least one range must be present to match anything.

    • Field Detail

      • BEGINNING

        public static final java.util.List<ScheduleRange> BEGINNING
        Default range set for zero.
      • ALL_MONTH_DAYS

        public static final java.util.List<ScheduleRange> ALL_MONTH_DAYS
        Default range set for all days in a month.
      • ALL_MONTHS

        public static final java.util.List<ScheduleRange> ALL_MONTHS
        Default range set for all months in a year.
      • ALL_WEEK_DAYS

        public static final java.util.List<ScheduleRange> ALL_WEEK_DAYS
        Default range set for all days in a week.
    • Method Detail

      • getSeconds

        public java.util.List<ScheduleRange> getSeconds()
        Gets the second range to match.
        Returns:
        second ranges
      • getMinutes

        public java.util.List<ScheduleRange> getMinutes()
        Gets the minute range to match.
        Returns:
        minute ranges
      • getHour

        public java.util.List<ScheduleRange> getHour()
        Gets the hour range to match.
        Returns:
        hour ranges
      • getDayOfMonth

        public java.util.List<ScheduleRange> getDayOfMonth()
        Gets the day of month range to match.
        Returns:
        hour ranges
      • getMonth

        public java.util.List<ScheduleRange> getMonth()
        Gets the month range to match.
        Returns:
        month ranges
      • getYear

        public java.util.List<ScheduleRange> getYear()
        Gets the year range to match.
        Returns:
        year ranges
      • getDayOfWeek

        public java.util.List<ScheduleRange> getDayOfWeek()
        Gets the day of the week range to match.
        Returns:
        day of the week range
      • getComment

        public java.lang.String getComment()
        Gets the description of this specification.
        Returns:
        specification description
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object