Class CronSchedule.TimeSteps

All Implemented Interfaces:
Serializable
Enclosing class:
CronSchedule

public static class CronSchedule.TimeSteps extends CronSchedule.AbstractTimeValue
Represents a time interval, e.g. 0-4/10
Author:
ralph
See Also:
  • Constructor Details

  • Method Details

    • matches

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

      public CronSchedule.AbstractTimeValue getRange()
      Returns:
      the range
    • setRange

      public void setRange(CronSchedule.AbstractTimeValue range)
      Parameters:
      range - the range to set
    • getSteps

      public int getSteps()
      Returns:
      the steps
    • setSteps

      public void setSteps(int steps)
      Parameters:
      steps - the steps to set
    • toString

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