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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

13.04
/src/main/java/com/box/sdkgen/schemas/tasks/Tasks.java
1
package com.box.sdkgen.schemas.tasks;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.task.Task;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.List;
9
import java.util.Objects;
10

11
/** A list of tasks. */
12
@JsonFilter("nullablePropertyFilter")
13
public class Tasks extends SerializableObject {
14

15
  /**
16
   * One greater than the offset of the last entry in the entire collection. The total number of
17
   * entries in the collection may be less than `total_count`.
18
   */
19
  @JsonProperty("total_count")
20
  protected Long totalCount;
21

22
  /** A list of tasks. */
23
  protected List<Task> entries;
24

25
  public Tasks() {
26
    super();
1✔
27
  }
1✔
28

29
  protected Tasks(Builder builder) {
30
    super();
×
31
    this.totalCount = builder.totalCount;
×
32
    this.entries = builder.entries;
×
33
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
34
  }
×
35

36
  public Long getTotalCount() {
37
    return totalCount;
1✔
38
  }
39

40
  public List<Task> getEntries() {
41
    return entries;
×
42
  }
43

44
  @Override
45
  public boolean equals(Object o) {
46
    if (this == o) {
×
47
      return true;
×
48
    }
49
    if (o == null || getClass() != o.getClass()) {
×
50
      return false;
×
51
    }
52
    Tasks casted = (Tasks) o;
×
53
    return Objects.equals(totalCount, casted.totalCount) && Objects.equals(entries, casted.entries);
×
54
  }
55

56
  @Override
57
  public int hashCode() {
58
    return Objects.hash(totalCount, entries);
×
59
  }
60

61
  @Override
62
  public String toString() {
63
    return "Tasks{"
×
64
        + "totalCount='"
65
        + totalCount
66
        + '\''
67
        + ", "
68
        + "entries='"
69
        + entries
70
        + '\''
71
        + "}";
72
  }
73

74
  public static class Builder extends NullableFieldTracker {
×
75

76
    protected Long totalCount;
77

78
    protected List<Task> entries;
79

80
    public Builder totalCount(Long totalCount) {
81
      this.totalCount = totalCount;
×
82
      return this;
×
83
    }
84

85
    public Builder entries(List<Task> entries) {
86
      this.entries = entries;
×
87
      return this;
×
88
    }
89

90
    public Tasks build() {
91
      return new Tasks(this);
×
92
    }
93
  }
94
}
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