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

box / box-java-sdk-gen / #293

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#293

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 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/items/Items.java
1
package com.box.sdkgen.schemas.items;
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.filefullorfolderfullorweblink.FileFullOrFolderFullOrWebLink;
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
@JsonFilter("nullablePropertyFilter")
13
public class Items extends SerializableObject {
14

15
  protected Long limit;
16

17
  @JsonProperty("next_marker")
18
  @Nullable
19
  protected String nextMarker;
20

21
  @JsonProperty("prev_marker")
22
  @Nullable
23
  protected String prevMarker;
24

25
  @JsonProperty("total_count")
26
  protected Long totalCount;
27

28
  protected Long offset;
29

30
  protected List<ItemsOrderField> order;
31

32
  protected List<FileFullOrFolderFullOrWebLink> entries;
33

34
  public Items() {
35
    super();
1✔
36
  }
1✔
37

38
  protected Items(Builder builder) {
39
    super();
×
40
    this.limit = builder.limit;
×
41
    this.nextMarker = builder.nextMarker;
×
UNCOV
42
    this.prevMarker = builder.prevMarker;
×
UNCOV
43
    this.totalCount = builder.totalCount;
×
44
    this.offset = builder.offset;
×
UNCOV
45
    this.order = builder.order;
×
UNCOV
46
    this.entries = builder.entries;
×
UNCOV
47
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
48
  }
×
49

50
  public Long getLimit() {
UNCOV
51
    return limit;
×
52
  }
53

54
  public String getNextMarker() {
UNCOV
55
    return nextMarker;
×
56
  }
57

58
  public String getPrevMarker() {
UNCOV
59
    return prevMarker;
×
60
  }
61

62
  public Long getTotalCount() {
UNCOV
63
    return totalCount;
×
64
  }
65

66
  public Long getOffset() {
UNCOV
67
    return offset;
×
68
  }
69

70
  public List<ItemsOrderField> getOrder() {
UNCOV
71
    return order;
×
72
  }
73

74
  public List<FileFullOrFolderFullOrWebLink> getEntries() {
75
    return entries;
1✔
76
  }
77

78
  @Override
79
  public boolean equals(Object o) {
80
    if (this == o) {
×
81
      return true;
×
82
    }
83
    if (o == null || getClass() != o.getClass()) {
×
84
      return false;
×
85
    }
86
    Items casted = (Items) o;
×
UNCOV
87
    return Objects.equals(limit, casted.limit)
×
UNCOV
88
        && Objects.equals(nextMarker, casted.nextMarker)
×
UNCOV
89
        && Objects.equals(prevMarker, casted.prevMarker)
×
UNCOV
90
        && Objects.equals(totalCount, casted.totalCount)
×
91
        && Objects.equals(offset, casted.offset)
×
UNCOV
92
        && Objects.equals(order, casted.order)
×
UNCOV
93
        && Objects.equals(entries, casted.entries);
×
94
  }
95

96
  @Override
97
  public int hashCode() {
UNCOV
98
    return Objects.hash(limit, nextMarker, prevMarker, totalCount, offset, order, entries);
×
99
  }
100

101
  @Override
102
  public String toString() {
UNCOV
103
    return "Items{"
×
104
        + "limit='"
105
        + limit
106
        + '\''
107
        + ", "
108
        + "nextMarker='"
109
        + nextMarker
110
        + '\''
111
        + ", "
112
        + "prevMarker='"
113
        + prevMarker
114
        + '\''
115
        + ", "
116
        + "totalCount='"
117
        + totalCount
118
        + '\''
119
        + ", "
120
        + "offset='"
121
        + offset
122
        + '\''
123
        + ", "
124
        + "order='"
125
        + order
126
        + '\''
127
        + ", "
128
        + "entries='"
129
        + entries
130
        + '\''
131
        + "}";
132
  }
133

UNCOV
134
  public static class Builder extends NullableFieldTracker {
×
135

136
    protected Long limit;
137

138
    protected String nextMarker;
139

140
    protected String prevMarker;
141

142
    protected Long totalCount;
143

144
    protected Long offset;
145

146
    protected List<ItemsOrderField> order;
147

148
    protected List<FileFullOrFolderFullOrWebLink> entries;
149

150
    public Builder limit(Long limit) {
UNCOV
151
      this.limit = limit;
×
UNCOV
152
      return this;
×
153
    }
154

155
    public Builder nextMarker(String nextMarker) {
UNCOV
156
      this.nextMarker = nextMarker;
×
UNCOV
157
      this.markNullableFieldAsSet("next_marker");
×
UNCOV
158
      return this;
×
159
    }
160

161
    public Builder prevMarker(String prevMarker) {
UNCOV
162
      this.prevMarker = prevMarker;
×
UNCOV
163
      this.markNullableFieldAsSet("prev_marker");
×
164
      return this;
×
165
    }
166

167
    public Builder totalCount(Long totalCount) {
UNCOV
168
      this.totalCount = totalCount;
×
169
      return this;
×
170
    }
171

172
    public Builder offset(Long offset) {
UNCOV
173
      this.offset = offset;
×
174
      return this;
×
175
    }
176

177
    public Builder order(List<ItemsOrderField> order) {
UNCOV
178
      this.order = order;
×
179
      return this;
×
180
    }
181

182
    public Builder entries(List<FileFullOrFolderFullOrWebLink> entries) {
UNCOV
183
      this.entries = entries;
×
UNCOV
184
      return this;
×
185
    }
186

187
    public Items build() {
UNCOV
188
      return new Items(this);
×
189
    }
190
  }
191
}
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