• 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/ScheduleListState.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
/** State of a listed schedule. */
26
public class ScheduleListState {
27
  private final String note;
28
  private final boolean paused;
29

30
  public ScheduleListState(String note, boolean paused) {
×
31
    this.note = note;
×
32
    this.paused = paused;
×
33
  }
×
34

35
  /** Human-readable message for the schedule. */
36
  public String getNote() {
37
    return note;
×
38
  }
39

40
  /** Whether the schedule is paused */
41
  public boolean isPaused() {
42
    return paused;
×
43
  }
44

45
  @Override
46
  public boolean equals(Object o) {
47
    if (this == o) return true;
×
48
    if (o == null || getClass() != o.getClass()) return false;
×
49
    ScheduleListState that = (ScheduleListState) o;
×
50
    return paused == that.paused && Objects.equals(note, that.note);
×
51
  }
52

53
  @Override
54
  public int hashCode() {
55
    return Objects.hash(note, paused);
×
56
  }
57

58
  @Override
59
  public String toString() {
60
    return "ScheduleListState{" + "note='" + note + '\'' + ", paused=" + paused + '}';
×
61
  }
62
}
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

© 2025 Coveralls, Inc