• 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

7.89
/src/main/java/com/box/sdkgen/schemas/groups/Groups.java
1
package com.box.sdkgen.schemas.groups;
2

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

9
public class Groups extends SerializableObject {
10

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

14
  protected Long limit;
15

16
  protected Long offset;
17

18
  protected List<GroupsOrderField> order;
19

20
  protected List<GroupFull> entries;
21

22
  public Groups() {
23
    super();
1✔
24
  }
1✔
25

26
  protected Groups(Builder builder) {
27
    super();
×
28
    this.totalCount = builder.totalCount;
×
29
    this.limit = builder.limit;
×
30
    this.offset = builder.offset;
×
31
    this.order = builder.order;
×
32
    this.entries = builder.entries;
×
33
  }
×
34

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

39
  public Long getLimit() {
40
    return limit;
×
41
  }
42

43
  public Long getOffset() {
44
    return offset;
×
45
  }
46

47
  public List<GroupsOrderField> getOrder() {
48
    return order;
×
49
  }
50

51
  public List<GroupFull> getEntries() {
52
    return entries;
×
53
  }
54

55
  @Override
56
  public boolean equals(Object o) {
57
    if (this == o) {
×
58
      return true;
×
59
    }
60
    if (o == null || getClass() != o.getClass()) {
×
61
      return false;
×
62
    }
63
    Groups casted = (Groups) o;
×
64
    return Objects.equals(totalCount, casted.totalCount)
×
65
        && Objects.equals(limit, casted.limit)
×
66
        && Objects.equals(offset, casted.offset)
×
67
        && Objects.equals(order, casted.order)
×
68
        && Objects.equals(entries, casted.entries);
×
69
  }
70

71
  @Override
72
  public int hashCode() {
73
    return Objects.hash(totalCount, limit, offset, order, entries);
×
74
  }
75

76
  @Override
77
  public String toString() {
78
    return "Groups{"
×
79
        + "totalCount='"
80
        + totalCount
81
        + '\''
82
        + ", "
83
        + "limit='"
84
        + limit
85
        + '\''
86
        + ", "
87
        + "offset='"
88
        + offset
89
        + '\''
90
        + ", "
91
        + "order='"
92
        + order
93
        + '\''
94
        + ", "
95
        + "entries='"
96
        + entries
97
        + '\''
98
        + "}";
99
  }
100

NEW
101
  public static class Builder {
×
102

103
    protected Long totalCount;
104

105
    protected Long limit;
106

107
    protected Long offset;
108

109
    protected List<GroupsOrderField> order;
110

111
    protected List<GroupFull> entries;
112

113
    public Builder totalCount(Long totalCount) {
114
      this.totalCount = totalCount;
×
115
      return this;
×
116
    }
117

118
    public Builder limit(Long limit) {
119
      this.limit = limit;
×
120
      return this;
×
121
    }
122

123
    public Builder offset(Long offset) {
124
      this.offset = offset;
×
125
      return this;
×
126
    }
127

128
    public Builder order(List<GroupsOrderField> order) {
129
      this.order = order;
×
130
      return this;
×
131
    }
132

133
    public Builder entries(List<GroupFull> entries) {
134
      this.entries = entries;
×
135
      return this;
×
136
    }
137

138
    public Groups build() {
139
      return new Groups(this);
×
140
    }
141
  }
142
}
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