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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

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

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

9
public class Tasks extends SerializableObject {
10

11
  @JsonProperty("total_count")
12
  protected Long totalCount;
13

14
  protected List<Task> entries;
15

16
  public Tasks() {
17
    super();
1✔
18
  }
1✔
19

20
  protected Tasks(Builder builder) {
21
    super();
×
22
    this.totalCount = builder.totalCount;
×
23
    this.entries = builder.entries;
×
24
  }
×
25

26
  public Long getTotalCount() {
27
    return totalCount;
1✔
28
  }
29

30
  public List<Task> getEntries() {
31
    return entries;
×
32
  }
33

34
  @Override
35
  public boolean equals(Object o) {
36
    if (this == o) {
×
37
      return true;
×
38
    }
39
    if (o == null || getClass() != o.getClass()) {
×
40
      return false;
×
41
    }
42
    Tasks casted = (Tasks) o;
×
43
    return Objects.equals(totalCount, casted.totalCount) && Objects.equals(entries, casted.entries);
×
44
  }
45

46
  @Override
47
  public int hashCode() {
48
    return Objects.hash(totalCount, entries);
×
49
  }
50

51
  @Override
52
  public String toString() {
53
    return "Tasks{"
×
54
        + "totalCount='"
55
        + totalCount
56
        + '\''
57
        + ", "
58
        + "entries='"
59
        + entries
60
        + '\''
61
        + "}";
62
  }
63

NEW
64
  public static class Builder {
×
65

66
    protected Long totalCount;
67

68
    protected List<Task> entries;
69

70
    public Builder totalCount(Long totalCount) {
71
      this.totalCount = totalCount;
×
72
      return this;
×
73
    }
74

75
    public Builder entries(List<Task> entries) {
76
      this.entries = entries;
×
77
      return this;
×
78
    }
79

80
    public Tasks build() {
81
      return new Tasks(this);
×
82
    }
83
  }
84
}
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