• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

temporalio / sdk-java / #346

27 Jul 2026 06:57PM UTC coverage: 68.181% (+0.03%) from 68.152%
#346

push

github

web-flow
Fix: Propagate WorkflowOptions.priority through signalWithStart (#2966)

7075 of 12432 branches covered (56.91%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 2 files covered. (100.0%)

16 existing lines in 2 files now uncovered.

29371 of 41023 relevant lines covered (71.6%)

0.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

10.81
/temporal-sdk/src/main/java/io/temporal/client/schedules/ScheduleRange.java
1
package io.temporal.client.schedules;
2

3
import com.google.common.base.Preconditions;
4
import java.util.Objects;
5

6
/** Inclusive range for a schedule match value. */
7
public final class ScheduleRange {
8
  private final int start;
9
  private final int end;
10
  private final int step;
11

12
  /**
13
   * Create a inclusive range for a schedule match value.
14
   *
15
   * @param start The inclusive start of the range
16
   */
17
  public ScheduleRange(int start) {
18
    this(start, 0, 0);
×
19
  }
×
20

21
  /**
22
   * Create a inclusive range for a schedule match value.
23
   *
24
   * @param start The inclusive start of the range
25
   * @param end The inclusive end of the range. Must be non-negative. Default if unset or less than
26
   *     start is start.
27
   * @throws IllegalStateException if start or end is negative
28
   */
29
  public ScheduleRange(int start, int end) {
UNCOV
30
    this(start, end, 0);
×
UNCOV
31
  }
×
32

33
  /**
34
   * Create a inclusive range for a schedule match value.
35
   *
36
   * @param start The inclusive start of the range
37
   * @param end The inclusive end of the range. Must be non-negative. Default if unset or less than
38
   *     start is start.
39
   * @param step The step to take between each value. Default if unset or 0, is 1.
40
   * @throws IllegalStateException if start, end, or step is negative
41
   */
42
  public ScheduleRange(int start, int end, int step) {
1✔
43
    Preconditions.checkState(start >= 0 && end >= 0 && step >= 0);
1!
UNCOV
44
    this.start = start;
×
UNCOV
45
    this.end = end;
×
UNCOV
46
    this.step = step;
×
UNCOV
47
  }
×
48

49
  /**
50
   * Gets the inclusive start of the range.
51
   *
52
   * @return start of range
53
   */
54
  public int getStart() {
UNCOV
55
    return start;
×
56
  }
57

58
  /**
59
   * Gets the inclusive end of the range.
60
   *
61
   * @return end of range
62
   */
63
  public int getEnd() {
UNCOV
64
    return end;
×
65
  }
66

67
  /**
68
   * Gets the step taken between each value.
69
   *
70
   * @return steps taken between values.
71
   */
72
  public int getStep() {
UNCOV
73
    return step;
×
74
  }
75

76
  @Override
77
  public boolean equals(Object o) {
UNCOV
78
    if (this == o) return true;
×
UNCOV
79
    if (o == null || getClass() != o.getClass()) return false;
×
UNCOV
80
    ScheduleRange that = (ScheduleRange) o;
×
UNCOV
81
    return start == that.start && end == that.end && step == that.step;
×
82
  }
83

84
  @Override
85
  public int hashCode() {
UNCOV
86
    return Objects.hash(start, end, step);
×
87
  }
88

89
  @Override
90
  public String toString() {
UNCOV
91
    return "ScheduleRange{" + "start=" + start + ", end=" + end + ", step=" + step + '}';
×
92
  }
93
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc