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

box / box-java-sdk / #6244

10 Feb 2026 05:27PM UTC coverage: 40.749% (+22.6%) from 18.192%
#6244

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2146 existing lines in 544 files now uncovered.

7382 of 18116 relevant lines covered (40.75%)

0.46 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/searchresultswithsharedlinks/SearchResultsWithSharedLinks.java
1
package com.box.sdkgen.schemas.searchresultswithsharedlinks;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.searchresultwithsharedlink.SearchResultWithSharedLink;
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
/**
15
 * A list of files, folders and web links that matched the search query, including the additional
16
 * information about any shared links through which the item has been shared with the user.
17
 *
18
 * <p>This response format is only returned when the `include_recent_shared_links` query parameter
19
 * has been set to `true`.
20
 */
21
@JsonFilter("nullablePropertyFilter")
22
public class SearchResultsWithSharedLinks extends SerializableObject {
23

24
  /**
25
   * One greater than the offset of the last entry in the search results. The total number of
26
   * entries in the collection may be less than `total_count`.
27
   */
28
  @JsonProperty("total_count")
29
  protected Long totalCount;
30

31
  /**
32
   * The limit that was used for this search. This will be the same as the `limit` query parameter
33
   * unless that value exceeded the maximum value allowed.
34
   */
35
  protected Long limit;
36

37
  /**
38
   * The 0-based offset of the first entry in this set. This will be the same as the `offset` query
39
   * parameter used.
40
   */
41
  protected Long offset;
42

43
  /** Specifies the response as search result items with shared links. */
44
  @JsonDeserialize(
45
      using =
46
          SearchResultsWithSharedLinksTypeField.SearchResultsWithSharedLinksTypeFieldDeserializer
47
              .class)
48
  @JsonSerialize(
49
      using =
50
          SearchResultsWithSharedLinksTypeField.SearchResultsWithSharedLinksTypeFieldSerializer
51
              .class)
52
  protected EnumWrapper<SearchResultsWithSharedLinksTypeField> type;
53

54
  /**
55
   * The search results for the query provided, including the additional information about any
56
   * shared links through which the item has been shared with the user.
57
   */
58
  protected List<SearchResultWithSharedLink> entries;
59

60
  public SearchResultsWithSharedLinks() {
61
    super();
×
62
    this.type =
×
63
        new EnumWrapper<SearchResultsWithSharedLinksTypeField>(
64
            SearchResultsWithSharedLinksTypeField.SEARCH_RESULTS_WITH_SHARED_LINKS);
65
  }
×
66

67
  protected SearchResultsWithSharedLinks(Builder builder) {
68
    super();
×
69
    this.totalCount = builder.totalCount;
×
70
    this.limit = builder.limit;
×
71
    this.offset = builder.offset;
×
72
    this.type = builder.type;
×
73
    this.entries = builder.entries;
×
74
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
75
  }
×
76

77
  public Long getTotalCount() {
78
    return totalCount;
×
79
  }
80

81
  public Long getLimit() {
82
    return limit;
×
83
  }
84

85
  public Long getOffset() {
86
    return offset;
×
87
  }
88

89
  public EnumWrapper<SearchResultsWithSharedLinksTypeField> getType() {
90
    return type;
×
91
  }
92

93
  public List<SearchResultWithSharedLink> getEntries() {
94
    return entries;
×
95
  }
96

97
  @Override
98
  public boolean equals(Object o) {
99
    if (this == o) {
×
100
      return true;
×
101
    }
102
    if (o == null || getClass() != o.getClass()) {
×
103
      return false;
×
104
    }
105
    SearchResultsWithSharedLinks casted = (SearchResultsWithSharedLinks) o;
×
106
    return Objects.equals(totalCount, casted.totalCount)
×
107
        && Objects.equals(limit, casted.limit)
×
108
        && Objects.equals(offset, casted.offset)
×
109
        && Objects.equals(type, casted.type)
×
110
        && Objects.equals(entries, casted.entries);
×
111
  }
112

113
  @Override
114
  public int hashCode() {
115
    return Objects.hash(totalCount, limit, offset, type, entries);
×
116
  }
117

118
  @Override
119
  public String toString() {
120
    return "SearchResultsWithSharedLinks{"
×
121
        + "totalCount='"
122
        + totalCount
123
        + '\''
124
        + ", "
125
        + "limit='"
126
        + limit
127
        + '\''
128
        + ", "
129
        + "offset='"
130
        + offset
131
        + '\''
132
        + ", "
133
        + "type='"
134
        + type
135
        + '\''
136
        + ", "
137
        + "entries='"
138
        + entries
139
        + '\''
140
        + "}";
141
  }
142

143
  public static class Builder extends NullableFieldTracker {
144

145
    protected Long totalCount;
146

147
    protected Long limit;
148

149
    protected Long offset;
150

151
    protected EnumWrapper<SearchResultsWithSharedLinksTypeField> type;
152

153
    protected List<SearchResultWithSharedLink> entries;
154

155
    public Builder() {
156
      super();
×
157
    }
×
158

159
    public Builder totalCount(Long totalCount) {
UNCOV
160
      this.totalCount = totalCount;
×
UNCOV
161
      return this;
×
162
    }
163

164
    public Builder limit(Long limit) {
UNCOV
165
      this.limit = limit;
×
UNCOV
166
      return this;
×
167
    }
168

169
    public Builder offset(Long offset) {
UNCOV
170
      this.offset = offset;
×
UNCOV
171
      return this;
×
172
    }
173

174
    public Builder type(SearchResultsWithSharedLinksTypeField type) {
UNCOV
175
      this.type = new EnumWrapper<SearchResultsWithSharedLinksTypeField>(type);
×
UNCOV
176
      return this;
×
177
    }
178

179
    public Builder type(EnumWrapper<SearchResultsWithSharedLinksTypeField> type) {
UNCOV
180
      this.type = type;
×
UNCOV
181
      return this;
×
182
    }
183

184
    public Builder entries(List<SearchResultWithSharedLink> entries) {
UNCOV
185
      this.entries = entries;
×
UNCOV
186
      return this;
×
187
    }
188

189
    public SearchResultsWithSharedLinks build() {
NEW
190
      if (this.type == null) {
×
NEW
191
        this.type =
×
192
            new EnumWrapper<SearchResultsWithSharedLinksTypeField>(
193
                SearchResultsWithSharedLinksTypeField.SEARCH_RESULTS_WITH_SHARED_LINKS);
194
      }
UNCOV
195
      return new SearchResultsWithSharedLinks(this);
×
196
    }
197
  }
198
}
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