Class CronSchedule.SingleTimeValue

java.lang.Object
rs.baselib.util.CronSchedule.AbstractTimeValue
rs.baselib.util.CronSchedule.SingleTimeValue
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
CronSchedule

public static class CronSchedule.SingleTimeValue
extends CronSchedule.AbstractTimeValue
Represents a single time value, e.g. 9
Author:
ralph
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    SingleTimeValue​(int value)  
    SingleTimeValue​(java.lang.String value)  
  • Method Summary

    Modifier and Type Method Description
    int getValue()  
    boolean matches​(int timeValue)
    Returns true when given time value matches defined value.
    void setValue​(int value)  
    java.lang.String toString()
    Returns cron-like string of this definition.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getValue

      public int getValue()
      Returns:
      the value
    • setValue

      public void setValue​(int value)
      Parameters:
      value - the value to set
    • matches

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

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