Package io.temporal.client.schedules
Class ScheduleRange
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleRange
-
public final class ScheduleRange extends java.lang.ObjectInclusive 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetEnd()Gets the inclusive end of the range.intgetStart()Gets the inclusive start of the range.intgetStep()Gets the step taken between each value.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
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 rangeend- 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 rangeend- 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 Detail
-
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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-