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

box / box-java-sdk-gen / #188

04 Jun 2025 10:42AM UTC coverage: 34.762% (-0.9%) from 35.631%
#188

Pull #327

github

web-flow
Merge a4b5eccbc into 28f2ec7f8
Pull Request #327: chore: Update .codegen.json with commit hash of codegen and openapi spec

15770 of 45365 relevant lines covered (34.76%)

0.35 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.SerializableObject;
4
import com.box.sdkgen.schemas.filefullorfolderfullorweblink.FileFullOrFolderFullOrWebLink;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.List;
10
import java.util.Objects;
11

12
public class SearchResults extends SerializableObject {
13

14
  @JsonProperty("total_count")
15
  protected Long totalCount;
16

17
  protected Long limit;
18

19
  protected Long offset;
20

21
  @JsonDeserialize(using = SearchResultsTypeField.SearchResultsTypeFieldDeserializer.class)
22
  @JsonSerialize(using = SearchResultsTypeField.SearchResultsTypeFieldSerializer.class)
23
  protected EnumWrapper<SearchResultsTypeField> type;
24

25
  protected List<FileFullOrFolderFullOrWebLink> entries;
26

27
  public SearchResults() {
28
    super();
×
29
    this.type =
×
30
        new EnumWrapper<SearchResultsTypeField>(SearchResultsTypeField.SEARCH_RESULTS_ITEMS);
31
  }
×
32

33
  protected SearchResults(SearchResultsBuilder builder) {
34
    super();
×
35
    this.totalCount = builder.totalCount;
×
36
    this.limit = builder.limit;
×
37
    this.offset = builder.offset;
×
38
    this.type = builder.type;
×
39
    this.entries = builder.entries;
×
40
  }
×
41

42
  public Long getTotalCount() {
43
    return totalCount;
×
44
  }
45

46
  public Long getLimit() {
47
    return limit;
×
48
  }
49

50
  public Long getOffset() {
51
    return offset;
×
52
  }
53

54
  public EnumWrapper<SearchResultsTypeField> getType() {
55
    return type;
×
56
  }
57

58
  public List<FileFullOrFolderFullOrWebLink> getEntries() {
59
    return entries;
×
60
  }
61

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

78
  @Override
79
  public int hashCode() {
80
    return Objects.hash(totalCount, limit, offset, type, entries);
×
81
  }
82

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

108
  public static class SearchResultsBuilder {
109

110
    protected Long totalCount;
111

112
    protected Long limit;
113

114
    protected Long offset;
115

116
    protected EnumWrapper<SearchResultsTypeField> type;
117

118
    protected List<FileFullOrFolderFullOrWebLink> entries;
119

120
    public SearchResultsBuilder() {
×
121
      this.type =
×
122
          new EnumWrapper<SearchResultsTypeField>(SearchResultsTypeField.SEARCH_RESULTS_ITEMS);
123
    }
×
124

125
    public SearchResultsBuilder totalCount(Long totalCount) {
126
      this.totalCount = totalCount;
×
127
      return this;
×
128
    }
129

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

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

140
    public SearchResultsBuilder type(SearchResultsTypeField type) {
141
      this.type = new EnumWrapper<SearchResultsTypeField>(type);
×
142
      return this;
×
143
    }
144

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

150
    public SearchResultsBuilder entries(List<FileFullOrFolderFullOrWebLink> entries) {
151
      this.entries = entries;
×
152
      return this;
×
153
    }
154

155
    public SearchResults build() {
156
      return new SearchResults(this);
×
157
    }
158
  }
159
}
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