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

box / box-java-sdk-gen / #294

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

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/box/sdkgen/schemas/searchresults/SearchResults.java
1
package com.box.sdkgen.schemas.searchresults;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.filefullorfolderfullorweblink.FileFullOrFolderFullOrWebLink;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.List;
12
import java.util.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class SearchResults extends SerializableObject {
16

17
  @JsonProperty("total_count")
18
  protected Long totalCount;
19

20
  protected Long limit;
21

22
  protected Long offset;
23

24
  @JsonDeserialize(using = SearchResultsTypeField.SearchResultsTypeFieldDeserializer.class)
25
  @JsonSerialize(using = SearchResultsTypeField.SearchResultsTypeFieldSerializer.class)
26
  protected EnumWrapper<SearchResultsTypeField> type;
27

28
  protected List<FileFullOrFolderFullOrWebLink> entries;
29

30
  public SearchResults() {
31
    super();
×
UNCOV
32
    this.type =
×
33
        new EnumWrapper<SearchResultsTypeField>(SearchResultsTypeField.SEARCH_RESULTS_ITEMS);
34
  }
×
35

36
  protected SearchResults(Builder builder) {
37
    super();
×
38
    this.totalCount = builder.totalCount;
×
39
    this.limit = builder.limit;
×
40
    this.offset = builder.offset;
×
UNCOV
41
    this.type = builder.type;
×
UNCOV
42
    this.entries = builder.entries;
×
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
44
  }
×
45

46
  public Long getTotalCount() {
47
    return totalCount;
×
48
  }
49

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

54
  public Long getOffset() {
55
    return offset;
×
56
  }
57

58
  public EnumWrapper<SearchResultsTypeField> getType() {
59
    return type;
×
60
  }
61

62
  public List<FileFullOrFolderFullOrWebLink> getEntries() {
UNCOV
63
    return entries;
×
64
  }
65

66
  @Override
67
  public boolean equals(Object o) {
68
    if (this == o) {
×
UNCOV
69
      return true;
×
70
    }
71
    if (o == null || getClass() != o.getClass()) {
×
72
      return false;
×
73
    }
74
    SearchResults casted = (SearchResults) o;
×
75
    return Objects.equals(totalCount, casted.totalCount)
×
UNCOV
76
        && Objects.equals(limit, casted.limit)
×
UNCOV
77
        && Objects.equals(offset, casted.offset)
×
UNCOV
78
        && Objects.equals(type, casted.type)
×
UNCOV
79
        && Objects.equals(entries, casted.entries);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
UNCOV
84
    return Objects.hash(totalCount, limit, offset, type, entries);
×
85
  }
86

87
  @Override
88
  public String toString() {
UNCOV
89
    return "SearchResults{"
×
90
        + "totalCount='"
91
        + totalCount
92
        + '\''
93
        + ", "
94
        + "limit='"
95
        + limit
96
        + '\''
97
        + ", "
98
        + "offset='"
99
        + offset
100
        + '\''
101
        + ", "
102
        + "type='"
103
        + type
104
        + '\''
105
        + ", "
106
        + "entries='"
107
        + entries
108
        + '\''
109
        + "}";
110
  }
111

112
  public static class Builder extends NullableFieldTracker {
113

114
    protected Long totalCount;
115

116
    protected Long limit;
117

118
    protected Long offset;
119

120
    protected EnumWrapper<SearchResultsTypeField> type;
121

122
    protected List<FileFullOrFolderFullOrWebLink> entries;
123

124
    public Builder() {
UNCOV
125
      super();
×
126
      this.type =
×
127
          new EnumWrapper<SearchResultsTypeField>(SearchResultsTypeField.SEARCH_RESULTS_ITEMS);
UNCOV
128
    }
×
129

130
    public Builder totalCount(Long totalCount) {
131
      this.totalCount = totalCount;
×
132
      return this;
×
133
    }
134

135
    public Builder limit(Long limit) {
136
      this.limit = limit;
×
137
      return this;
×
138
    }
139

140
    public Builder offset(Long offset) {
141
      this.offset = offset;
×
142
      return this;
×
143
    }
144

145
    public Builder type(SearchResultsTypeField type) {
146
      this.type = new EnumWrapper<SearchResultsTypeField>(type);
×
147
      return this;
×
148
    }
149

150
    public Builder type(EnumWrapper<SearchResultsTypeField> type) {
151
      this.type = type;
×
152
      return this;
×
153
    }
154

155
    public Builder entries(List<FileFullOrFolderFullOrWebLink> entries) {
156
      this.entries = entries;
×
UNCOV
157
      return this;
×
158
    }
159

160
    public SearchResults build() {
UNCOV
161
      return new SearchResults(this);
×
162
    }
163
  }
164
}
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