• 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/signrequestsignerinput/SignRequestSignerInput.java
1
package com.box.sdkgen.schemas.signrequestsignerinput;
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.Objects;
10

11
public class SignRequestSignerInput extends SignRequestPrefillTag {
12

13
  @JsonDeserialize(
14
      using = SignRequestSignerInputTypeField.SignRequestSignerInputTypeFieldDeserializer.class)
15
  @JsonSerialize(
16
      using = SignRequestSignerInputTypeField.SignRequestSignerInputTypeFieldSerializer.class)
17
  protected EnumWrapper<SignRequestSignerInputTypeField> type;
18

19
  @JsonDeserialize(
20
      using =
21
          SignRequestSignerInputContentTypeField.SignRequestSignerInputContentTypeFieldDeserializer
22
              .class)
23
  @JsonSerialize(
24
      using =
25
          SignRequestSignerInputContentTypeField.SignRequestSignerInputContentTypeFieldSerializer
26
              .class)
27
  @JsonProperty("content_type")
28
  protected EnumWrapper<SignRequestSignerInputContentTypeField> contentType;
29

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

33
  @JsonProperty("read_only")
34
  protected Boolean readOnly;
35

36
  public SignRequestSignerInput(@JsonProperty("page_index") long pageIndex) {
37
    super();
×
38
    this.pageIndex = pageIndex;
×
39
  }
×
40

41
  protected SignRequestSignerInput(Builder builder) {
42
    super(builder);
×
43
    this.type = builder.type;
×
44
    this.contentType = builder.contentType;
×
45
    this.pageIndex = builder.pageIndex;
×
46
    this.readOnly = builder.readOnly;
×
47
  }
×
48

49
  public EnumWrapper<SignRequestSignerInputTypeField> getType() {
50
    return type;
×
51
  }
52

53
  public EnumWrapper<SignRequestSignerInputContentTypeField> getContentType() {
54
    return contentType;
×
55
  }
56

57
  public long getPageIndex() {
58
    return pageIndex;
×
59
  }
60

61
  public Boolean getReadOnly() {
62
    return readOnly;
×
63
  }
64

65
  @Override
66
  public boolean equals(Object o) {
67
    if (this == o) {
×
68
      return true;
×
69
    }
70
    if (o == null || getClass() != o.getClass()) {
×
71
      return false;
×
72
    }
73
    SignRequestSignerInput casted = (SignRequestSignerInput) o;
×
74
    return Objects.equals(documentTagId, casted.documentTagId)
×
75
        && Objects.equals(textValue, casted.textValue)
×
76
        && Objects.equals(checkboxValue, casted.checkboxValue)
×
77
        && Objects.equals(dateValue, casted.dateValue)
×
78
        && Objects.equals(type, casted.type)
×
79
        && Objects.equals(contentType, casted.contentType)
×
80
        && Objects.equals(pageIndex, casted.pageIndex)
×
81
        && Objects.equals(readOnly, casted.readOnly);
×
82
  }
83

84
  @Override
85
  public int hashCode() {
86
    return Objects.hash(
×
87
        documentTagId, textValue, checkboxValue, dateValue, type, contentType, pageIndex, readOnly);
×
88
  }
89

90
  @Override
91
  public String toString() {
92
    return "SignRequestSignerInput{"
×
93
        + "documentTagId='"
94
        + documentTagId
95
        + '\''
96
        + ", "
97
        + "textValue='"
98
        + textValue
99
        + '\''
100
        + ", "
101
        + "checkboxValue='"
102
        + checkboxValue
103
        + '\''
104
        + ", "
105
        + "dateValue='"
106
        + dateValue
107
        + '\''
108
        + ", "
109
        + "type='"
110
        + type
111
        + '\''
112
        + ", "
113
        + "contentType='"
114
        + contentType
115
        + '\''
116
        + ", "
117
        + "pageIndex='"
118
        + pageIndex
119
        + '\''
120
        + ", "
121
        + "readOnly='"
122
        + readOnly
123
        + '\''
124
        + "}";
125
  }
126

127
  public static class Builder extends SignRequestPrefillTag.Builder {
128

129
    protected EnumWrapper<SignRequestSignerInputTypeField> type;
130

131
    protected EnumWrapper<SignRequestSignerInputContentTypeField> contentType;
132

133
    protected final long pageIndex;
134

135
    protected Boolean readOnly;
136

137
    public Builder(long pageIndex) {
138
      super();
×
139
      this.pageIndex = pageIndex;
×
140
    }
×
141

142
    public Builder type(SignRequestSignerInputTypeField type) {
143
      this.type = new EnumWrapper<SignRequestSignerInputTypeField>(type);
×
144
      return this;
×
145
    }
146

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

152
    public Builder contentType(SignRequestSignerInputContentTypeField contentType) {
UNCOV
153
      this.contentType = new EnumWrapper<SignRequestSignerInputContentTypeField>(contentType);
×
154
      return this;
×
155
    }
156

157
    public Builder contentType(EnumWrapper<SignRequestSignerInputContentTypeField> contentType) {
UNCOV
158
      this.contentType = contentType;
×
159
      return this;
×
160
    }
161

162
    public Builder readOnly(Boolean readOnly) {
163
      this.readOnly = readOnly;
×
164
      return this;
×
165
    }
166

167
    @Override
168
    public Builder documentTagId(String documentTagId) {
169
      this.documentTagId = documentTagId;
×
170
      return this;
×
171
    }
172

173
    @Override
174
    public Builder textValue(String textValue) {
175
      this.textValue = textValue;
×
176
      return this;
×
177
    }
178

179
    @Override
180
    public Builder checkboxValue(Boolean checkboxValue) {
181
      this.checkboxValue = checkboxValue;
×
182
      return this;
×
183
    }
184

185
    @Override
186
    public Builder dateValue(Date dateValue) {
187
      this.dateValue = dateValue;
×
188
      return this;
×
189
    }
190

191
    public SignRequestSignerInput build() {
192
      return new SignRequestSignerInput(this);
×
193
    }
194
  }
195
}
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