• 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

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

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.groupfull.GroupFull;
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 groups. */
12
@JsonFilter("nullablePropertyFilter")
13
public class Groups 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
   * <p>This field is only returned for calls that use offset-based pagination. For marker-based
20
   * paginated APIs, this field will be omitted.
21
   */
22
  @JsonProperty("total_count")
23
  protected Long totalCount;
24

25
  /**
26
   * The limit that was used for these entries. This will be the same as the `limit` query parameter
27
   * unless that value exceeded the maximum value allowed. The maximum value varies by API.
28
   */
29
  protected Long limit;
30

31
  /**
32
   * The 0-based offset of the first entry in this set. This will be the same as the `offset` query
33
   * parameter.
34
   *
35
   * <p>This field is only returned for calls that use offset-based pagination. For marker-based
36
   * paginated APIs, this field will be omitted.
37
   */
38
  protected Long offset;
39

40
  /**
41
   * The order by which items are returned.
42
   *
43
   * <p>This field is only returned for calls that use offset-based pagination. For marker-based
44
   * paginated APIs, this field will be omitted.
45
   */
46
  protected List<GroupsOrderField> order;
47

48
  /** A list of groups. */
49
  protected List<GroupFull> entries;
50

51
  public Groups() {
52
    super();
1✔
53
  }
1✔
54

55
  protected Groups(Builder builder) {
56
    super();
×
57
    this.totalCount = builder.totalCount;
×
58
    this.limit = builder.limit;
×
59
    this.offset = builder.offset;
×
60
    this.order = builder.order;
×
61
    this.entries = builder.entries;
×
62
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
63
  }
×
64

65
  public Long getTotalCount() {
66
    return totalCount;
1✔
67
  }
68

69
  public Long getLimit() {
70
    return limit;
×
71
  }
72

73
  public Long getOffset() {
74
    return offset;
×
75
  }
76

77
  public List<GroupsOrderField> getOrder() {
78
    return order;
×
79
  }
80

81
  public List<GroupFull> getEntries() {
82
    return entries;
×
83
  }
84

85
  @Override
86
  public boolean equals(Object o) {
87
    if (this == o) {
×
88
      return true;
×
89
    }
90
    if (o == null || getClass() != o.getClass()) {
×
91
      return false;
×
92
    }
93
    Groups casted = (Groups) o;
×
94
    return Objects.equals(totalCount, casted.totalCount)
×
95
        && Objects.equals(limit, casted.limit)
×
96
        && Objects.equals(offset, casted.offset)
×
97
        && Objects.equals(order, casted.order)
×
98
        && Objects.equals(entries, casted.entries);
×
99
  }
100

101
  @Override
102
  public int hashCode() {
103
    return Objects.hash(totalCount, limit, offset, order, entries);
×
104
  }
105

106
  @Override
107
  public String toString() {
108
    return "Groups{"
×
109
        + "totalCount='"
110
        + totalCount
111
        + '\''
112
        + ", "
113
        + "limit='"
114
        + limit
115
        + '\''
116
        + ", "
117
        + "offset='"
118
        + offset
119
        + '\''
120
        + ", "
121
        + "order='"
122
        + order
123
        + '\''
124
        + ", "
125
        + "entries='"
126
        + entries
127
        + '\''
128
        + "}";
129
  }
130

131
  public static class Builder extends NullableFieldTracker {
×
132

133
    protected Long totalCount;
134

135
    protected Long limit;
136

137
    protected Long offset;
138

139
    protected List<GroupsOrderField> order;
140

141
    protected List<GroupFull> entries;
142

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

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

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

158
    public Builder order(List<GroupsOrderField> order) {
159
      this.order = order;
×
160
      return this;
×
161
    }
162

163
    public Builder entries(List<GroupFull> entries) {
164
      this.entries = entries;
×
165
      return this;
×
166
    }
167

168
    public Groups build() {
169
      return new Groups(this);
×
170
    }
171
  }
172
}
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