Class CronSchedule.TimeRange

All Implemented Interfaces:
Serializable
Enclosing class:
CronSchedule

public static class CronSchedule.TimeRange extends CronSchedule.AbstractTimeValue
Represents a time range, e.g. 5-9
Author:
ralph
See Also:
  • Constructor Details

    • TimeRange

      public TimeRange(int startValue, int endValue)
    • TimeRange

      public TimeRange(String range)
  • Method Details

    • getEndValue

      public int getEndValue()
      Returns:
      the endValue
    • setEndValue

      public void setEndValue(int endValue)
      Parameters:
      endValue - the endValue to set
    • getStartValue

      public int getStartValue()
      Returns:
      the startValue
    • setStartValue

      public void setStartValue(int startValue)
      Parameters:
      startValue - the startValue to set
    • matches

      public boolean matches(int timeValue)
      Returns true when given time value falls in range.
      Specified by:
      matches in class CronSchedule.AbstractTimeValue
      Parameters:
      timeValue - - time value to evaluate
      Returns:
      true when time falls in range
    • toString

      public String toString()
      Returns cron-like string of this definition.
      Overrides:
      toString in class Object