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

temporalio / sdk-java / #174

pending completion
#174

push

github-actions

web-flow
Add schedules API (#1776)

Add schedules API

1143 of 1143 new or added lines in 35 files covered. (100.0%)

18101 of 23284 relevant lines covered (77.74%)

0.78 hits per line

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

0.0
/temporal-sdk/src/main/java/io/temporal/client/schedules/ScheduleListSchedule.java
1
/*
2
 * Copyright (C) 2022 Temporal Technologies, Inc. All Rights Reserved.
3
 *
4
 * Copyright (C) 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
5
 *
6
 * Modifications copyright (C) 2017 Uber Technologies, Inc.
7
 *
8
 * Licensed under the Apache License, Version 2.0 (the "License");
9
 * you may not use this material except in compliance with the License.
10
 * You may obtain a copy of the License at
11
 *
12
 *   http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing, software
15
 * distributed under the License is distributed on an "AS IS" BASIS,
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
 * See the License for the specific language governing permissions and
18
 * limitations under the License.
19
 */
20

21
package io.temporal.client.schedules;
22

23
import java.util.Objects;
24

25
/** Details for a listed schedule. */
26
public final class ScheduleListSchedule {
27
  private final ScheduleListAction action;
28
  private final ScheduleSpec spec;
29
  private final ScheduleListState state;
30

31
  public ScheduleListSchedule(
32
      ScheduleListAction action, ScheduleSpec spec, ScheduleListState state) {
×
33
    this.action = action;
×
34
    this.spec = spec;
×
35
    this.state = state;
×
36
  }
×
37

38
  /**
39
   * Get the action taken when scheduled.
40
   *
41
   * @return Action taken when scheduled
42
   */
43
  public ScheduleListAction getAction() {
44
    return action;
×
45
  }
46

47
  /**
48
   * Get when the action is taken.
49
   *
50
   * @return When the action is taken
51
   */
52
  public ScheduleSpec getSpec() {
53
    return spec;
×
54
  }
55

56
  /**
57
   * Get the state of the schedule.
58
   *
59
   * @return State of the schedule.
60
   */
61
  public ScheduleListState getState() {
62
    return state;
×
63
  }
64

65
  @Override
66
  public boolean equals(Object o) {
67
    if (this == o) return true;
×
68
    if (o == null || getClass() != o.getClass()) return false;
×
69
    ScheduleListSchedule that = (ScheduleListSchedule) o;
×
70
    return Objects.equals(action, that.action)
×
71
        && Objects.equals(spec, that.spec)
×
72
        && Objects.equals(state, that.state);
×
73
  }
74

75
  @Override
76
  public int hashCode() {
77
    return Objects.hash(action, spec, state);
×
78
  }
79

80
  @Override
81
  public String toString() {
82
    return "ScheduleListSchedule{"
×
83
        + "action="
84
        + action
85
        + ", spec="
86
        + spec
87
        + ", state="
88
        + state
89
        + '}';
90
  }
91
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc