• 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/ScheduleListInfo.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.time.Instant;
24
import java.util.List;
25
import java.util.Objects;
26

27
/** Information about a listed schedule. */
28
public final class ScheduleListInfo {
29
  private final List<ScheduleActionResult> recentActions;
30
  private final List<Instant> nextActionTimes;
31

32
  public ScheduleListInfo(List<ScheduleActionResult> recentActions, List<Instant> nextActionTimes) {
×
33
    this.recentActions = recentActions;
×
34
    this.nextActionTimes = nextActionTimes;
×
35
  }
×
36

37
  /**
38
   * Most recent actions, oldest first. This may be a smaller count than ScheduleInfo.RecentActions
39
   *
40
   * @return The most recent action
41
   */
42
  public List<ScheduleActionResult> getRecentActions() {
43
    return recentActions;
×
44
  }
45

46
  /** Next scheduled action times. This may be a smaller count than ScheduleInfo.NextActions. */
47
  public List<Instant> getNextActionTimes() {
48
    return nextActionTimes;
×
49
  }
50

51
  @Override
52
  public boolean equals(Object o) {
53
    if (this == o) return true;
×
54
    if (o == null || getClass() != o.getClass()) return false;
×
55
    ScheduleListInfo that = (ScheduleListInfo) o;
×
56
    return Objects.equals(recentActions, that.recentActions)
×
57
        && Objects.equals(nextActionTimes, that.nextActionTimes);
×
58
  }
59

60
  @Override
61
  public int hashCode() {
62
    return Objects.hash(recentActions, nextActionTimes);
×
63
  }
64

65
  @Override
66
  public String toString() {
67
    return "ScheduleListInfo{"
×
68
        + "recentActions="
69
        + recentActions
70
        + ", nextActionTimes="
71
        + nextActionTimes
72
        + '}';
73
  }
74
}
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