Package io.temporal.client.schedules
Class ScheduleRange
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleRange
-
public final class ScheduleRange extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getEnd()
Gets the inclusive end of the range.int
getStart()
Gets the inclusive start of the range.int
getStep()
Gets the step taken between each value.int
hashCode()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-