• 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

6.25
/src/main/java/com/box/sdkgen/schemas/users/Users.java
1
package com.box.sdkgen.schemas.users;
2

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

9
public class Users extends SerializableObject {
10

11
  protected Long limit;
12

13
  @JsonProperty("next_marker")
14
  protected String nextMarker;
15

16
  @JsonProperty("prev_marker")
17
  protected String prevMarker;
18

19
  @JsonProperty("total_count")
20
  protected Long totalCount;
21

22
  protected Long offset;
23

24
  protected List<UsersOrderField> order;
25

26
  protected List<UserFull> entries;
27

28
  public Users() {
29
    super();
1✔
30
  }
1✔
31

32
  protected Users(Builder builder) {
33
    super();
×
34
    this.limit = builder.limit;
×
35
    this.nextMarker = builder.nextMarker;
×
36
    this.prevMarker = builder.prevMarker;
×
37
    this.totalCount = builder.totalCount;
×
38
    this.offset = builder.offset;
×
39
    this.order = builder.order;
×
40
    this.entries = builder.entries;
×
41
  }
×
42

43
  public Long getLimit() {
44
    return limit;
×
45
  }
46

47
  public String getNextMarker() {
48
    return nextMarker;
×
49
  }
50

51
  public String getPrevMarker() {
52
    return prevMarker;
×
53
  }
54

55
  public Long getTotalCount() {
56
    return totalCount;
1✔
57
  }
58

59
  public Long getOffset() {
60
    return offset;
×
61
  }
62

63
  public List<UsersOrderField> getOrder() {
64
    return order;
×
65
  }
66

67
  public List<UserFull> getEntries() {
68
    return entries;
×
69
  }
70

71
  @Override
72
  public boolean equals(Object o) {
73
    if (this == o) {
×
74
      return true;
×
75
    }
76
    if (o == null || getClass() != o.getClass()) {
×
77
      return false;
×
78
    }
79
    Users casted = (Users) o;
×
80
    return Objects.equals(limit, casted.limit)
×
81
        && Objects.equals(nextMarker, casted.nextMarker)
×
82
        && Objects.equals(prevMarker, casted.prevMarker)
×
83
        && Objects.equals(totalCount, casted.totalCount)
×
84
        && Objects.equals(offset, casted.offset)
×
85
        && Objects.equals(order, casted.order)
×
86
        && Objects.equals(entries, casted.entries);
×
87
  }
88

89
  @Override
90
  public int hashCode() {
91
    return Objects.hash(limit, nextMarker, prevMarker, totalCount, offset, order, entries);
×
92
  }
93

94
  @Override
95
  public String toString() {
96
    return "Users{"
×
97
        + "limit='"
98
        + limit
99
        + '\''
100
        + ", "
101
        + "nextMarker='"
102
        + nextMarker
103
        + '\''
104
        + ", "
105
        + "prevMarker='"
106
        + prevMarker
107
        + '\''
108
        + ", "
109
        + "totalCount='"
110
        + totalCount
111
        + '\''
112
        + ", "
113
        + "offset='"
114
        + offset
115
        + '\''
116
        + ", "
117
        + "order='"
118
        + order
119
        + '\''
120
        + ", "
121
        + "entries='"
122
        + entries
123
        + '\''
124
        + "}";
125
  }
126

NEW
127
  public static class Builder {
×
128

129
    protected Long limit;
130

131
    protected String nextMarker;
132

133
    protected String prevMarker;
134

135
    protected Long totalCount;
136

137
    protected Long offset;
138

139
    protected List<UsersOrderField> order;
140

141
    protected List<UserFull> entries;
142

143
    public Builder limit(Long limit) {
144
      this.limit = limit;
×
145
      return this;
×
146
    }
147

148
    public Builder nextMarker(String nextMarker) {
149
      this.nextMarker = nextMarker;
×
150
      return this;
×
151
    }
152

153
    public Builder prevMarker(String prevMarker) {
154
      this.prevMarker = prevMarker;
×
155
      return this;
×
156
    }
157

158
    public Builder totalCount(Long totalCount) {
159
      this.totalCount = totalCount;
×
160
      return this;
×
161
    }
162

163
    public Builder offset(Long offset) {
164
      this.offset = offset;
×
165
      return this;
×
166
    }
167

168
    public Builder order(List<UsersOrderField> order) {
169
      this.order = order;
×
170
      return this;
×
171
    }
172

173
    public Builder entries(List<UserFull> entries) {
174
      this.entries = entries;
×
175
      return this;
×
176
    }
177

178
    public Users build() {
179
      return new Users(this);
×
180
    }
181
  }
182
}
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