• 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/workflowfull/WorkflowFull.java
1
package com.box.sdkgen.schemas.workflowfull;
2

3
import com.box.sdkgen.internal.utils.DateTimeUtils;
4
import com.box.sdkgen.schemas.userbase.UserBase;
5
import com.box.sdkgen.schemas.workflow.Workflow;
6
import com.box.sdkgen.schemas.workflow.WorkflowFlowsField;
7
import com.box.sdkgen.schemas.workflowmini.WorkflowMiniTypeField;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.Date;
13
import java.util.List;
14
import java.util.Objects;
15

16
public class WorkflowFull extends Workflow {
17

18
  @JsonProperty("created_at")
19
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
20
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
21
  protected Date createdAt;
22

23
  @JsonProperty("modified_at")
24
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
25
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
26
  protected Date modifiedAt;
27

28
  @JsonProperty("created_by")
29
  protected UserBase createdBy;
30

31
  @JsonProperty("modified_by")
32
  protected UserBase modifiedBy;
33

34
  public WorkflowFull() {
35
    super();
×
36
  }
×
37

38
  protected WorkflowFull(Builder builder) {
39
    super(builder);
×
40
    this.createdAt = builder.createdAt;
×
41
    this.modifiedAt = builder.modifiedAt;
×
42
    this.createdBy = builder.createdBy;
×
43
    this.modifiedBy = builder.modifiedBy;
×
44
  }
×
45

46
  public Date getCreatedAt() {
47
    return createdAt;
×
48
  }
49

50
  public Date getModifiedAt() {
51
    return modifiedAt;
×
52
  }
53

54
  public UserBase getCreatedBy() {
55
    return createdBy;
×
56
  }
57

58
  public UserBase getModifiedBy() {
59
    return modifiedBy;
×
60
  }
61

62
  @Override
63
  public boolean equals(Object o) {
64
    if (this == o) {
×
65
      return true;
×
66
    }
67
    if (o == null || getClass() != o.getClass()) {
×
68
      return false;
×
69
    }
70
    WorkflowFull casted = (WorkflowFull) o;
×
71
    return Objects.equals(id, casted.id)
×
72
        && Objects.equals(type, casted.type)
×
73
        && Objects.equals(name, casted.name)
×
74
        && Objects.equals(description, casted.description)
×
75
        && Objects.equals(isEnabled, casted.isEnabled)
×
76
        && Objects.equals(flows, casted.flows)
×
77
        && Objects.equals(createdAt, casted.createdAt)
×
78
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
79
        && Objects.equals(createdBy, casted.createdBy)
×
80
        && Objects.equals(modifiedBy, casted.modifiedBy);
×
81
  }
82

83
  @Override
84
  public int hashCode() {
85
    return Objects.hash(
×
86
        id,
87
        type,
88
        name,
89
        description,
90
        isEnabled,
91
        flows,
92
        createdAt,
93
        modifiedAt,
94
        createdBy,
95
        modifiedBy);
96
  }
97

98
  @Override
99
  public String toString() {
100
    return "WorkflowFull{"
×
101
        + "id='"
102
        + id
103
        + '\''
104
        + ", "
105
        + "type='"
106
        + type
107
        + '\''
108
        + ", "
109
        + "name='"
110
        + name
111
        + '\''
112
        + ", "
113
        + "description='"
114
        + description
115
        + '\''
116
        + ", "
117
        + "isEnabled='"
118
        + isEnabled
119
        + '\''
120
        + ", "
121
        + "flows='"
122
        + flows
123
        + '\''
124
        + ", "
125
        + "createdAt='"
126
        + createdAt
127
        + '\''
128
        + ", "
129
        + "modifiedAt='"
130
        + modifiedAt
131
        + '\''
132
        + ", "
133
        + "createdBy='"
134
        + createdBy
135
        + '\''
136
        + ", "
137
        + "modifiedBy='"
138
        + modifiedBy
139
        + '\''
140
        + "}";
141
  }
142

NEW
143
  public static class Builder extends Workflow.Builder {
×
144

145
    protected Date createdAt;
146

147
    protected Date modifiedAt;
148

149
    protected UserBase createdBy;
150

151
    protected UserBase modifiedBy;
152

153
    public Builder createdAt(Date createdAt) {
154
      this.createdAt = createdAt;
×
155
      return this;
×
156
    }
157

158
    public Builder modifiedAt(Date modifiedAt) {
159
      this.modifiedAt = modifiedAt;
×
160
      return this;
×
161
    }
162

163
    public Builder createdBy(UserBase createdBy) {
164
      this.createdBy = createdBy;
×
165
      return this;
×
166
    }
167

168
    public Builder modifiedBy(UserBase modifiedBy) {
169
      this.modifiedBy = modifiedBy;
×
170
      return this;
×
171
    }
172

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

179
    @Override
180
    public Builder type(WorkflowMiniTypeField type) {
181
      this.type = new EnumWrapper<WorkflowMiniTypeField>(type);
×
182
      return this;
×
183
    }
184

185
    @Override
186
    public Builder type(EnumWrapper<WorkflowMiniTypeField> type) {
187
      this.type = type;
×
188
      return this;
×
189
    }
190

191
    @Override
192
    public Builder name(String name) {
193
      this.name = name;
×
194
      return this;
×
195
    }
196

197
    @Override
198
    public Builder description(String description) {
199
      this.description = description;
×
200
      return this;
×
201
    }
202

203
    @Override
204
    public Builder isEnabled(Boolean isEnabled) {
205
      this.isEnabled = isEnabled;
×
206
      return this;
×
207
    }
208

209
    @Override
210
    public Builder flows(List<WorkflowFlowsField> flows) {
211
      this.flows = flows;
×
212
      return this;
×
213
    }
214

215
    public WorkflowFull build() {
216
      return new WorkflowFull(this);
×
217
    }
218
  }
219
}
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