Class ScheduleRange

java.lang.Object
io.temporal.client.schedules.ScheduleRange

public final class ScheduleRange extends Object
Inclusive range for a schedule match value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScheduleRange(int start)
    Create a inclusive range for a schedule match value.
    ScheduleRange(int start, int end)
    Create a inclusive range for a schedule match value.
    ScheduleRange(int start, int end, int step)
    Create a inclusive range for a schedule match value.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Gets the inclusive end of the range.
    int
    Gets the inclusive start of the range.
    int
    Gets the step taken between each value.
    int
     
     

    Methods inherited from class java.lang.Object

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

    • ScheduleRange

      public ScheduleRange(int start)
      Create a inclusive range for a schedule match value.
      Parameters:
      start - The inclusive start of the range
    • ScheduleRange

      public ScheduleRange(int start, int end)
      Create a inclusive range for a schedule match value.
      Parameters:
      start - The inclusive start of the range
      end - The inclusive end of the range. Default if unset or less than start is start.
    • ScheduleRange

      public ScheduleRange(int start, int end, int step)
      Create a inclusive range for a schedule match value.
      Parameters:
      start - The inclusive start of the range
      end - The inclusive end of the range. Default if unset or less than start is start.
      step - The step to take between each value. Default if unset or 0, is 1.
  • Method Details

    • getStart

      public int getStart()
      Gets the inclusive start of the range.
      Returns:
      start of range
    • getEnd

      public int getEnd()
      Gets the inclusive end of the range.
      Returns:
      end of range
    • getStep

      public int getStep()
      Gets the step taken between each value.
      Returns:
      steps taken between values.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object