• 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

2.86
/src/main/java/com/box/sdkgen/schemas/templatesigner/TemplateSigner.java
1
package com.box.sdkgen.schemas.templatesigner;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.templatesignerinput.TemplateSignerInput;
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 TemplateSigner extends SerializableObject {
13

14
  protected List<TemplateSignerInput> inputs;
15

16
  protected String email;
17

18
  @JsonDeserialize(using = TemplateSignerRoleField.TemplateSignerRoleFieldDeserializer.class)
19
  @JsonSerialize(using = TemplateSignerRoleField.TemplateSignerRoleFieldSerializer.class)
20
  protected EnumWrapper<TemplateSignerRoleField> role;
21

22
  @JsonProperty("is_in_person")
23
  protected Boolean isInPerson;
24

25
  protected Long order;
26

27
  @JsonProperty("signer_group_id")
28
  protected String signerGroupId;
29

30
  protected String label;
31

32
  @JsonProperty("public_id")
33
  protected String publicId;
34

35
  @JsonProperty("is_password_required")
36
  protected Boolean isPasswordRequired;
37

38
  @JsonProperty("is_phone_number_required")
39
  protected Boolean isPhoneNumberRequired;
40

41
  @JsonProperty("login_required")
42
  protected Boolean loginRequired;
43

44
  public TemplateSigner() {
45
    super();
1✔
46
  }
1✔
47

48
  protected TemplateSigner(Builder builder) {
49
    super();
×
50
    this.inputs = builder.inputs;
×
51
    this.email = builder.email;
×
52
    this.role = builder.role;
×
53
    this.isInPerson = builder.isInPerson;
×
54
    this.order = builder.order;
×
55
    this.signerGroupId = builder.signerGroupId;
×
56
    this.label = builder.label;
×
57
    this.publicId = builder.publicId;
×
58
    this.isPasswordRequired = builder.isPasswordRequired;
×
59
    this.isPhoneNumberRequired = builder.isPhoneNumberRequired;
×
60
    this.loginRequired = builder.loginRequired;
×
61
  }
×
62

63
  public List<TemplateSignerInput> getInputs() {
64
    return inputs;
×
65
  }
66

67
  public String getEmail() {
68
    return email;
×
69
  }
70

71
  public EnumWrapper<TemplateSignerRoleField> getRole() {
72
    return role;
×
73
  }
74

75
  public Boolean getIsInPerson() {
76
    return isInPerson;
×
77
  }
78

79
  public Long getOrder() {
80
    return order;
×
81
  }
82

83
  public String getSignerGroupId() {
84
    return signerGroupId;
×
85
  }
86

87
  public String getLabel() {
88
    return label;
×
89
  }
90

91
  public String getPublicId() {
92
    return publicId;
×
93
  }
94

95
  public Boolean getIsPasswordRequired() {
96
    return isPasswordRequired;
×
97
  }
98

99
  public Boolean getIsPhoneNumberRequired() {
100
    return isPhoneNumberRequired;
×
101
  }
102

103
  public Boolean getLoginRequired() {
104
    return loginRequired;
×
105
  }
106

107
  @Override
108
  public boolean equals(Object o) {
109
    if (this == o) {
×
110
      return true;
×
111
    }
112
    if (o == null || getClass() != o.getClass()) {
×
113
      return false;
×
114
    }
115
    TemplateSigner casted = (TemplateSigner) o;
×
116
    return Objects.equals(inputs, casted.inputs)
×
117
        && Objects.equals(email, casted.email)
×
118
        && Objects.equals(role, casted.role)
×
119
        && Objects.equals(isInPerson, casted.isInPerson)
×
120
        && Objects.equals(order, casted.order)
×
121
        && Objects.equals(signerGroupId, casted.signerGroupId)
×
122
        && Objects.equals(label, casted.label)
×
123
        && Objects.equals(publicId, casted.publicId)
×
124
        && Objects.equals(isPasswordRequired, casted.isPasswordRequired)
×
125
        && Objects.equals(isPhoneNumberRequired, casted.isPhoneNumberRequired)
×
126
        && Objects.equals(loginRequired, casted.loginRequired);
×
127
  }
128

129
  @Override
130
  public int hashCode() {
131
    return Objects.hash(
×
132
        inputs,
133
        email,
134
        role,
135
        isInPerson,
136
        order,
137
        signerGroupId,
138
        label,
139
        publicId,
140
        isPasswordRequired,
141
        isPhoneNumberRequired,
142
        loginRequired);
143
  }
144

145
  @Override
146
  public String toString() {
147
    return "TemplateSigner{"
×
148
        + "inputs='"
149
        + inputs
150
        + '\''
151
        + ", "
152
        + "email='"
153
        + email
154
        + '\''
155
        + ", "
156
        + "role='"
157
        + role
158
        + '\''
159
        + ", "
160
        + "isInPerson='"
161
        + isInPerson
162
        + '\''
163
        + ", "
164
        + "order='"
165
        + order
166
        + '\''
167
        + ", "
168
        + "signerGroupId='"
169
        + signerGroupId
170
        + '\''
171
        + ", "
172
        + "label='"
173
        + label
174
        + '\''
175
        + ", "
176
        + "publicId='"
177
        + publicId
178
        + '\''
179
        + ", "
180
        + "isPasswordRequired='"
181
        + isPasswordRequired
182
        + '\''
183
        + ", "
184
        + "isPhoneNumberRequired='"
185
        + isPhoneNumberRequired
186
        + '\''
187
        + ", "
188
        + "loginRequired='"
189
        + loginRequired
190
        + '\''
191
        + "}";
192
  }
193

NEW
194
  public static class Builder {
×
195

196
    protected List<TemplateSignerInput> inputs;
197

198
    protected String email;
199

200
    protected EnumWrapper<TemplateSignerRoleField> role;
201

202
    protected Boolean isInPerson;
203

204
    protected Long order;
205

206
    protected String signerGroupId;
207

208
    protected String label;
209

210
    protected String publicId;
211

212
    protected Boolean isPasswordRequired;
213

214
    protected Boolean isPhoneNumberRequired;
215

216
    protected Boolean loginRequired;
217

218
    public Builder inputs(List<TemplateSignerInput> inputs) {
219
      this.inputs = inputs;
×
220
      return this;
×
221
    }
222

223
    public Builder email(String email) {
224
      this.email = email;
×
225
      return this;
×
226
    }
227

228
    public Builder role(TemplateSignerRoleField role) {
229
      this.role = new EnumWrapper<TemplateSignerRoleField>(role);
×
230
      return this;
×
231
    }
232

233
    public Builder role(EnumWrapper<TemplateSignerRoleField> role) {
234
      this.role = role;
×
235
      return this;
×
236
    }
237

238
    public Builder isInPerson(Boolean isInPerson) {
239
      this.isInPerson = isInPerson;
×
240
      return this;
×
241
    }
242

243
    public Builder order(Long order) {
244
      this.order = order;
×
245
      return this;
×
246
    }
247

248
    public Builder signerGroupId(String signerGroupId) {
249
      this.signerGroupId = signerGroupId;
×
250
      return this;
×
251
    }
252

253
    public Builder label(String label) {
254
      this.label = label;
×
255
      return this;
×
256
    }
257

258
    public Builder publicId(String publicId) {
259
      this.publicId = publicId;
×
260
      return this;
×
261
    }
262

263
    public Builder isPasswordRequired(Boolean isPasswordRequired) {
264
      this.isPasswordRequired = isPasswordRequired;
×
265
      return this;
×
266
    }
267

268
    public Builder isPhoneNumberRequired(Boolean isPhoneNumberRequired) {
269
      this.isPhoneNumberRequired = isPhoneNumberRequired;
×
270
      return this;
×
271
    }
272

273
    public Builder loginRequired(Boolean loginRequired) {
274
      this.loginRequired = loginRequired;
×
275
      return this;
×
276
    }
277

278
    public TemplateSigner build() {
279
      return new TemplateSigner(this);
×
280
    }
281
  }
282
}
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