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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

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.SerializableObject;
4
import com.box.sdkgen.schemas.searchresultwithsharedlink.SearchResultWithSharedLink;
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 SearchResultsWithSharedLinks extends SerializableObject {
13

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

17
  protected Long limit;
18

19
  protected Long offset;
20

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

31
  protected List<SearchResultWithSharedLink> entries;
32

33
  public SearchResultsWithSharedLinks() {
34
    super();
×
35
    this.type =
×
36
        new EnumWrapper<SearchResultsWithSharedLinksTypeField>(
37
            SearchResultsWithSharedLinksTypeField.SEARCH_RESULTS_WITH_SHARED_LINKS);
38
  }
×
39

40
  protected SearchResultsWithSharedLinks(Builder builder) {
41
    super();
×
42
    this.totalCount = builder.totalCount;
×
43
    this.limit = builder.limit;
×
44
    this.offset = builder.offset;
×
45
    this.type = builder.type;
×
46
    this.entries = builder.entries;
×
47
  }
×
48

49
  public Long getTotalCount() {
50
    return totalCount;
×
51
  }
52

53
  public Long getLimit() {
54
    return limit;
×
55
  }
56

57
  public Long getOffset() {
58
    return offset;
×
59
  }
60

61
  public EnumWrapper<SearchResultsWithSharedLinksTypeField> getType() {
62
    return type;
×
63
  }
64

65
  public List<SearchResultWithSharedLink> getEntries() {
66
    return entries;
×
67
  }
68

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

85
  @Override
86
  public int hashCode() {
87
    return Objects.hash(totalCount, limit, offset, type, entries);
×
88
  }
89

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

115
  public static class Builder {
116

117
    protected Long totalCount;
118

119
    protected Long limit;
120

121
    protected Long offset;
122

123
    protected EnumWrapper<SearchResultsWithSharedLinksTypeField> type;
124

125
    protected List<SearchResultWithSharedLink> entries;
126

NEW
127
    public Builder() {
×
128
      this.type =
×
129
          new EnumWrapper<SearchResultsWithSharedLinksTypeField>(
130
              SearchResultsWithSharedLinksTypeField.SEARCH_RESULTS_WITH_SHARED_LINKS);
131
    }
×
132

133
    public Builder totalCount(Long totalCount) {
134
      this.totalCount = totalCount;
×
135
      return this;
×
136
    }
137

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

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

148
    public Builder type(SearchResultsWithSharedLinksTypeField type) {
149
      this.type = new EnumWrapper<SearchResultsWithSharedLinksTypeField>(type);
×
150
      return this;
×
151
    }
152

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

158
    public Builder entries(List<SearchResultWithSharedLink> entries) {
159
      this.entries = entries;
×
160
      return this;
×
161
    }
162

163
    public SearchResultsWithSharedLinks build() {
164
      return new SearchResultsWithSharedLinks(this);
×
165
    }
166
  }
167
}
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