• 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/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
@JsonFilter("nullablePropertyFilter")
15
public class SearchResultsWithSharedLinks extends SerializableObject {
16

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

20
  protected Long limit;
21

22
  protected Long offset;
23

24
  @JsonDeserialize(
25
      using =
26
          SearchResultsWithSharedLinksTypeField.SearchResultsWithSharedLinksTypeFieldDeserializer
27
              .class)
28
  @JsonSerialize(
29
      using =
30
          SearchResultsWithSharedLinksTypeField.SearchResultsWithSharedLinksTypeFieldSerializer
31
              .class)
32
  protected EnumWrapper<SearchResultsWithSharedLinksTypeField> type;
33

34
  protected List<SearchResultWithSharedLink> entries;
35

36
  public SearchResultsWithSharedLinks() {
UNCOV
37
    super();
×
38
    this.type =
×
39
        new EnumWrapper<SearchResultsWithSharedLinksTypeField>(
40
            SearchResultsWithSharedLinksTypeField.SEARCH_RESULTS_WITH_SHARED_LINKS);
41
  }
×
42

43
  protected SearchResultsWithSharedLinks(Builder builder) {
44
    super();
×
45
    this.totalCount = builder.totalCount;
×
46
    this.limit = builder.limit;
×
47
    this.offset = builder.offset;
×
UNCOV
48
    this.type = builder.type;
×
UNCOV
49
    this.entries = builder.entries;
×
50
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
51
  }
×
52

53
  public Long getTotalCount() {
54
    return totalCount;
×
55
  }
56

57
  public Long getLimit() {
58
    return limit;
×
59
  }
60

61
  public Long getOffset() {
62
    return offset;
×
63
  }
64

65
  public EnumWrapper<SearchResultsWithSharedLinksTypeField> getType() {
66
    return type;
×
67
  }
68

69
  public List<SearchResultWithSharedLink> getEntries() {
UNCOV
70
    return entries;
×
71
  }
72

73
  @Override
74
  public boolean equals(Object o) {
75
    if (this == o) {
×
UNCOV
76
      return true;
×
77
    }
78
    if (o == null || getClass() != o.getClass()) {
×
79
      return false;
×
80
    }
81
    SearchResultsWithSharedLinks casted = (SearchResultsWithSharedLinks) o;
×
82
    return Objects.equals(totalCount, casted.totalCount)
×
UNCOV
83
        && Objects.equals(limit, casted.limit)
×
UNCOV
84
        && Objects.equals(offset, casted.offset)
×
UNCOV
85
        && Objects.equals(type, casted.type)
×
UNCOV
86
        && Objects.equals(entries, casted.entries);
×
87
  }
88

89
  @Override
90
  public int hashCode() {
UNCOV
91
    return Objects.hash(totalCount, limit, offset, type, entries);
×
92
  }
93

94
  @Override
95
  public String toString() {
UNCOV
96
    return "SearchResultsWithSharedLinks{"
×
97
        + "totalCount='"
98
        + totalCount
99
        + '\''
100
        + ", "
101
        + "limit='"
102
        + limit
103
        + '\''
104
        + ", "
105
        + "offset='"
106
        + offset
107
        + '\''
108
        + ", "
109
        + "type='"
110
        + type
111
        + '\''
112
        + ", "
113
        + "entries='"
114
        + entries
115
        + '\''
116
        + "}";
117
  }
118

119
  public static class Builder extends NullableFieldTracker {
120

121
    protected Long totalCount;
122

123
    protected Long limit;
124

125
    protected Long offset;
126

127
    protected EnumWrapper<SearchResultsWithSharedLinksTypeField> type;
128

129
    protected List<SearchResultWithSharedLink> entries;
130

131
    public Builder() {
UNCOV
132
      super();
×
UNCOV
133
      this.type =
×
134
          new EnumWrapper<SearchResultsWithSharedLinksTypeField>(
135
              SearchResultsWithSharedLinksTypeField.SEARCH_RESULTS_WITH_SHARED_LINKS);
UNCOV
136
    }
×
137

138
    public Builder totalCount(Long totalCount) {
139
      this.totalCount = totalCount;
×
140
      return this;
×
141
    }
142

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

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

153
    public Builder type(SearchResultsWithSharedLinksTypeField type) {
154
      this.type = new EnumWrapper<SearchResultsWithSharedLinksTypeField>(type);
×
155
      return this;
×
156
    }
157

158
    public Builder type(EnumWrapper<SearchResultsWithSharedLinksTypeField> type) {
159
      this.type = type;
×
160
      return this;
×
161
    }
162

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

168
    public SearchResultsWithSharedLinks build() {
UNCOV
169
      return new SearchResultsWithSharedLinks(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