• 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

3.49
/src/main/java/com/box/sdkgen/schemas/templatesignerinput/TemplateSignerInput.java
1
package com.box.sdkgen.schemas.templatesignerinput;
2

3
import com.box.sdkgen.schemas.signrequestprefilltag.SignRequestPrefillTag;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.Date;
9
import java.util.List;
10
import java.util.Objects;
11

12
public class TemplateSignerInput extends SignRequestPrefillTag {
13

14
  @JsonDeserialize(
15
      using = TemplateSignerInputTypeField.TemplateSignerInputTypeFieldDeserializer.class)
16
  @JsonSerialize(using = TemplateSignerInputTypeField.TemplateSignerInputTypeFieldSerializer.class)
17
  protected EnumWrapper<TemplateSignerInputTypeField> type;
18

19
  @JsonDeserialize(
20
      using =
21
          TemplateSignerInputContentTypeField.TemplateSignerInputContentTypeFieldDeserializer.class)
22
  @JsonSerialize(
23
      using =
24
          TemplateSignerInputContentTypeField.TemplateSignerInputContentTypeFieldSerializer.class)
25
  @JsonProperty("content_type")
26
  protected EnumWrapper<TemplateSignerInputContentTypeField> contentType;
27

28
  @JsonProperty("is_required")
29
  protected Boolean isRequired;
30

31
  @JsonProperty("page_index")
32
  protected final long pageIndex;
33

34
  @JsonProperty("document_id")
35
  protected String documentId;
36

37
  @JsonProperty("dropdown_choices")
38
  protected List<String> dropdownChoices;
39

40
  @JsonProperty("group_id")
41
  protected String groupId;
42

43
  protected TemplateSignerInputCoordinatesField coordinates;
44

45
  protected TemplateSignerInputDimensionsField dimensions;
46

47
  protected String label;
48

49
  @JsonProperty("read_only")
50
  protected Boolean readOnly;
51

52
  public TemplateSignerInput(@JsonProperty("page_index") long pageIndex) {
53
    super();
1✔
54
    this.pageIndex = pageIndex;
1✔
55
  }
1✔
56

57
  protected TemplateSignerInput(Builder builder) {
58
    super(builder);
×
59
    this.type = builder.type;
×
60
    this.contentType = builder.contentType;
×
61
    this.isRequired = builder.isRequired;
×
62
    this.pageIndex = builder.pageIndex;
×
63
    this.documentId = builder.documentId;
×
64
    this.dropdownChoices = builder.dropdownChoices;
×
65
    this.groupId = builder.groupId;
×
66
    this.coordinates = builder.coordinates;
×
67
    this.dimensions = builder.dimensions;
×
68
    this.label = builder.label;
×
69
    this.readOnly = builder.readOnly;
×
70
  }
×
71

72
  public EnumWrapper<TemplateSignerInputTypeField> getType() {
73
    return type;
×
74
  }
75

76
  public EnumWrapper<TemplateSignerInputContentTypeField> getContentType() {
77
    return contentType;
×
78
  }
79

80
  public Boolean getIsRequired() {
81
    return isRequired;
×
82
  }
83

84
  public long getPageIndex() {
85
    return pageIndex;
×
86
  }
87

88
  public String getDocumentId() {
89
    return documentId;
×
90
  }
91

92
  public List<String> getDropdownChoices() {
93
    return dropdownChoices;
×
94
  }
95

96
  public String getGroupId() {
97
    return groupId;
×
98
  }
99

100
  public TemplateSignerInputCoordinatesField getCoordinates() {
101
    return coordinates;
×
102
  }
103

104
  public TemplateSignerInputDimensionsField getDimensions() {
105
    return dimensions;
×
106
  }
107

108
  public String getLabel() {
109
    return label;
×
110
  }
111

112
  public Boolean getReadOnly() {
113
    return readOnly;
×
114
  }
115

116
  @Override
117
  public boolean equals(Object o) {
118
    if (this == o) {
×
119
      return true;
×
120
    }
121
    if (o == null || getClass() != o.getClass()) {
×
122
      return false;
×
123
    }
124
    TemplateSignerInput casted = (TemplateSignerInput) o;
×
125
    return Objects.equals(documentTagId, casted.documentTagId)
×
126
        && Objects.equals(textValue, casted.textValue)
×
127
        && Objects.equals(checkboxValue, casted.checkboxValue)
×
128
        && Objects.equals(dateValue, casted.dateValue)
×
129
        && Objects.equals(type, casted.type)
×
130
        && Objects.equals(contentType, casted.contentType)
×
131
        && Objects.equals(isRequired, casted.isRequired)
×
132
        && Objects.equals(pageIndex, casted.pageIndex)
×
133
        && Objects.equals(documentId, casted.documentId)
×
134
        && Objects.equals(dropdownChoices, casted.dropdownChoices)
×
135
        && Objects.equals(groupId, casted.groupId)
×
136
        && Objects.equals(coordinates, casted.coordinates)
×
137
        && Objects.equals(dimensions, casted.dimensions)
×
138
        && Objects.equals(label, casted.label)
×
139
        && Objects.equals(readOnly, casted.readOnly);
×
140
  }
141

142
  @Override
143
  public int hashCode() {
144
    return Objects.hash(
×
145
        documentTagId,
146
        textValue,
147
        checkboxValue,
148
        dateValue,
149
        type,
150
        contentType,
151
        isRequired,
152
        pageIndex,
×
153
        documentId,
154
        dropdownChoices,
155
        groupId,
156
        coordinates,
157
        dimensions,
158
        label,
159
        readOnly);
160
  }
161

162
  @Override
163
  public String toString() {
164
    return "TemplateSignerInput{"
×
165
        + "documentTagId='"
166
        + documentTagId
167
        + '\''
168
        + ", "
169
        + "textValue='"
170
        + textValue
171
        + '\''
172
        + ", "
173
        + "checkboxValue='"
174
        + checkboxValue
175
        + '\''
176
        + ", "
177
        + "dateValue='"
178
        + dateValue
179
        + '\''
180
        + ", "
181
        + "type='"
182
        + type
183
        + '\''
184
        + ", "
185
        + "contentType='"
186
        + contentType
187
        + '\''
188
        + ", "
189
        + "isRequired='"
190
        + isRequired
191
        + '\''
192
        + ", "
193
        + "pageIndex='"
194
        + pageIndex
195
        + '\''
196
        + ", "
197
        + "documentId='"
198
        + documentId
199
        + '\''
200
        + ", "
201
        + "dropdownChoices='"
202
        + dropdownChoices
203
        + '\''
204
        + ", "
205
        + "groupId='"
206
        + groupId
207
        + '\''
208
        + ", "
209
        + "coordinates='"
210
        + coordinates
211
        + '\''
212
        + ", "
213
        + "dimensions='"
214
        + dimensions
215
        + '\''
216
        + ", "
217
        + "label='"
218
        + label
219
        + '\''
220
        + ", "
221
        + "readOnly='"
222
        + readOnly
223
        + '\''
224
        + "}";
225
  }
226

227
  public static class Builder extends SignRequestPrefillTag.Builder {
228

229
    protected EnumWrapper<TemplateSignerInputTypeField> type;
230

231
    protected EnumWrapper<TemplateSignerInputContentTypeField> contentType;
232

233
    protected Boolean isRequired;
234

235
    protected final long pageIndex;
236

237
    protected String documentId;
238

239
    protected List<String> dropdownChoices;
240

241
    protected String groupId;
242

243
    protected TemplateSignerInputCoordinatesField coordinates;
244

245
    protected TemplateSignerInputDimensionsField dimensions;
246

247
    protected String label;
248

249
    protected Boolean readOnly;
250

251
    public Builder(long pageIndex) {
252
      super();
×
253
      this.pageIndex = pageIndex;
×
254
    }
×
255

256
    public Builder type(TemplateSignerInputTypeField type) {
257
      this.type = new EnumWrapper<TemplateSignerInputTypeField>(type);
×
258
      return this;
×
259
    }
260

261
    public Builder type(EnumWrapper<TemplateSignerInputTypeField> type) {
262
      this.type = type;
×
263
      return this;
×
264
    }
265

266
    public Builder contentType(TemplateSignerInputContentTypeField contentType) {
267
      this.contentType = new EnumWrapper<TemplateSignerInputContentTypeField>(contentType);
×
268
      return this;
×
269
    }
270

271
    public Builder contentType(EnumWrapper<TemplateSignerInputContentTypeField> contentType) {
UNCOV
272
      this.contentType = contentType;
×
273
      return this;
×
274
    }
275

276
    public Builder isRequired(Boolean isRequired) {
277
      this.isRequired = isRequired;
×
278
      return this;
×
279
    }
280

281
    public Builder documentId(String documentId) {
282
      this.documentId = documentId;
×
283
      return this;
×
284
    }
285

286
    public Builder dropdownChoices(List<String> dropdownChoices) {
287
      this.dropdownChoices = dropdownChoices;
×
288
      return this;
×
289
    }
290

291
    public Builder groupId(String groupId) {
292
      this.groupId = groupId;
×
293
      return this;
×
294
    }
295

296
    public Builder coordinates(TemplateSignerInputCoordinatesField coordinates) {
297
      this.coordinates = coordinates;
×
298
      return this;
×
299
    }
300

301
    public Builder dimensions(TemplateSignerInputDimensionsField dimensions) {
302
      this.dimensions = dimensions;
×
303
      return this;
×
304
    }
305

306
    public Builder label(String label) {
307
      this.label = label;
×
308
      return this;
×
309
    }
310

311
    public Builder readOnly(Boolean readOnly) {
312
      this.readOnly = readOnly;
×
313
      return this;
×
314
    }
315

316
    @Override
317
    public Builder documentTagId(String documentTagId) {
318
      this.documentTagId = documentTagId;
×
319
      return this;
×
320
    }
321

322
    @Override
323
    public Builder textValue(String textValue) {
324
      this.textValue = textValue;
×
325
      return this;
×
326
    }
327

328
    @Override
329
    public Builder checkboxValue(Boolean checkboxValue) {
330
      this.checkboxValue = checkboxValue;
×
331
      return this;
×
332
    }
333

334
    @Override
335
    public Builder dateValue(Date dateValue) {
336
      this.dateValue = dateValue;
×
337
      return this;
×
338
    }
339

340
    public TemplateSignerInput build() {
341
      return new TemplateSignerInput(this);
×
342
    }
343
  }
344
}
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