• 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

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

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

12
/** A list of users. */
13
@JsonFilter("nullablePropertyFilter")
14
public class Users extends SerializableObject {
15

16
  /**
17
   * The limit that was used for these entries. This will be the same as the `limit` query parameter
18
   * unless that value exceeded the maximum value allowed. The maximum value varies by API.
19
   */
20
  protected Long limit;
21

22
  /** The marker for the start of the next page of results. */
23
  @JsonProperty("next_marker")
24
  @Nullable
25
  protected String nextMarker;
26

27
  /** The marker for the start of the previous page of results. */
28
  @JsonProperty("prev_marker")
29
  @Nullable
30
  protected String prevMarker;
31

32
  /**
33
   * One greater than the offset of the last entry in the entire collection. The total number of
34
   * entries in the collection may be less than `total_count`.
35
   *
36
   * <p>This field is only returned for calls that use offset-based pagination. For marker-based
37
   * paginated APIs, this field will be omitted.
38
   */
39
  @JsonProperty("total_count")
40
  protected Long totalCount;
41

42
  /**
43
   * The 0-based offset of the first entry in this set. This will be the same as the `offset` query
44
   * parameter.
45
   *
46
   * <p>This field is only returned for calls that use offset-based pagination. For marker-based
47
   * paginated APIs, this field will be omitted.
48
   */
49
  protected Long offset;
50

51
  /**
52
   * The order by which items are returned.
53
   *
54
   * <p>This field is only returned for calls that use offset-based pagination. For marker-based
55
   * paginated APIs, this field will be omitted.
56
   */
57
  protected List<UsersOrderField> order;
58

59
  /** A list of users. */
60
  protected List<UserFull> entries;
61

62
  public Users() {
63
    super();
1✔
64
  }
1✔
65

66
  protected Users(Builder builder) {
67
    super();
×
68
    this.limit = builder.limit;
×
69
    this.nextMarker = builder.nextMarker;
×
70
    this.prevMarker = builder.prevMarker;
×
71
    this.totalCount = builder.totalCount;
×
72
    this.offset = builder.offset;
×
73
    this.order = builder.order;
×
74
    this.entries = builder.entries;
×
75
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
76
  }
×
77

78
  public Long getLimit() {
79
    return limit;
×
80
  }
81

82
  public String getNextMarker() {
83
    return nextMarker;
×
84
  }
85

86
  public String getPrevMarker() {
87
    return prevMarker;
×
88
  }
89

90
  public Long getTotalCount() {
91
    return totalCount;
1✔
92
  }
93

94
  public Long getOffset() {
95
    return offset;
×
96
  }
97

98
  public List<UsersOrderField> getOrder() {
99
    return order;
×
100
  }
101

102
  public List<UserFull> getEntries() {
103
    return entries;
×
104
  }
105

106
  @Override
107
  public boolean equals(Object o) {
108
    if (this == o) {
×
109
      return true;
×
110
    }
111
    if (o == null || getClass() != o.getClass()) {
×
112
      return false;
×
113
    }
114
    Users casted = (Users) o;
×
115
    return Objects.equals(limit, casted.limit)
×
116
        && Objects.equals(nextMarker, casted.nextMarker)
×
117
        && Objects.equals(prevMarker, casted.prevMarker)
×
118
        && Objects.equals(totalCount, casted.totalCount)
×
119
        && Objects.equals(offset, casted.offset)
×
120
        && Objects.equals(order, casted.order)
×
121
        && Objects.equals(entries, casted.entries);
×
122
  }
123

124
  @Override
125
  public int hashCode() {
126
    return Objects.hash(limit, nextMarker, prevMarker, totalCount, offset, order, entries);
×
127
  }
128

129
  @Override
130
  public String toString() {
131
    return "Users{"
×
132
        + "limit='"
133
        + limit
134
        + '\''
135
        + ", "
136
        + "nextMarker='"
137
        + nextMarker
138
        + '\''
139
        + ", "
140
        + "prevMarker='"
141
        + prevMarker
142
        + '\''
143
        + ", "
144
        + "totalCount='"
145
        + totalCount
146
        + '\''
147
        + ", "
148
        + "offset='"
149
        + offset
150
        + '\''
151
        + ", "
152
        + "order='"
153
        + order
154
        + '\''
155
        + ", "
156
        + "entries='"
157
        + entries
158
        + '\''
159
        + "}";
160
  }
161

162
  public static class Builder extends NullableFieldTracker {
×
163

164
    protected Long limit;
165

166
    protected String nextMarker;
167

168
    protected String prevMarker;
169

170
    protected Long totalCount;
171

172
    protected Long offset;
173

174
    protected List<UsersOrderField> order;
175

176
    protected List<UserFull> entries;
177

178
    public Builder limit(Long limit) {
179
      this.limit = limit;
×
180
      return this;
×
181
    }
182

183
    public Builder nextMarker(String nextMarker) {
184
      this.nextMarker = nextMarker;
×
185
      this.markNullableFieldAsSet("next_marker");
×
186
      return this;
×
187
    }
188

189
    public Builder prevMarker(String prevMarker) {
190
      this.prevMarker = prevMarker;
×
191
      this.markNullableFieldAsSet("prev_marker");
×
192
      return this;
×
193
    }
194

195
    public Builder totalCount(Long totalCount) {
196
      this.totalCount = totalCount;
×
197
      return this;
×
198
    }
199

200
    public Builder offset(Long offset) {
201
      this.offset = offset;
×
202
      return this;
×
203
    }
204

205
    public Builder order(List<UsersOrderField> order) {
206
      this.order = order;
×
207
      return this;
×
208
    }
209

210
    public Builder entries(List<UserFull> entries) {
211
      this.entries = entries;
×
212
      return this;
×
213
    }
214

215
    public Users build() {
216
      return new Users(this);
×
217
    }
218
  }
219
}
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