• 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

9.52
/src/main/java/com/box/sdkgen/schemas/workflow/WorkflowFlowsOutcomesField.java
1
package com.box.sdkgen.schemas.workflow;
2

3
import com.box.sdkgen.internal.SerializableObject;
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.List;
9
import java.util.Objects;
10

11
public class WorkflowFlowsOutcomesField extends SerializableObject {
12

13
  protected String id;
14

15
  @JsonDeserialize(
16
      using = WorkflowFlowsOutcomesTypeField.WorkflowFlowsOutcomesTypeFieldDeserializer.class)
17
  @JsonSerialize(
18
      using = WorkflowFlowsOutcomesTypeField.WorkflowFlowsOutcomesTypeFieldSerializer.class)
19
  protected EnumWrapper<WorkflowFlowsOutcomesTypeField> type;
20

21
  protected String name;
22

23
  @JsonDeserialize(
24
      using =
25
          WorkflowFlowsOutcomesActionTypeField.WorkflowFlowsOutcomesActionTypeFieldDeserializer
26
              .class)
27
  @JsonSerialize(
28
      using =
29
          WorkflowFlowsOutcomesActionTypeField.WorkflowFlowsOutcomesActionTypeFieldSerializer.class)
30
  @JsonProperty("action_type")
31
  protected EnumWrapper<WorkflowFlowsOutcomesActionTypeField> actionType;
32

33
  @JsonProperty("if_rejected")
34
  protected List<WorkflowFlowsOutcomesIfRejectedField> ifRejected;
35

36
  public WorkflowFlowsOutcomesField() {
37
    super();
1✔
38
  }
1✔
39

40
  protected WorkflowFlowsOutcomesField(Builder builder) {
41
    super();
×
42
    this.id = builder.id;
×
43
    this.type = builder.type;
×
44
    this.name = builder.name;
×
45
    this.actionType = builder.actionType;
×
46
    this.ifRejected = builder.ifRejected;
×
47
  }
×
48

49
  public String getId() {
50
    return id;
×
51
  }
52

53
  public EnumWrapper<WorkflowFlowsOutcomesTypeField> getType() {
54
    return type;
1✔
55
  }
56

57
  public String getName() {
58
    return name;
×
59
  }
60

61
  public EnumWrapper<WorkflowFlowsOutcomesActionTypeField> getActionType() {
62
    return actionType;
1✔
63
  }
64

65
  public List<WorkflowFlowsOutcomesIfRejectedField> getIfRejected() {
66
    return ifRejected;
×
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
    WorkflowFlowsOutcomesField casted = (WorkflowFlowsOutcomesField) o;
×
78
    return Objects.equals(id, casted.id)
×
79
        && Objects.equals(type, casted.type)
×
80
        && Objects.equals(name, casted.name)
×
81
        && Objects.equals(actionType, casted.actionType)
×
82
        && Objects.equals(ifRejected, casted.ifRejected);
×
83
  }
84

85
  @Override
86
  public int hashCode() {
87
    return Objects.hash(id, type, name, actionType, ifRejected);
×
88
  }
89

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

NEW
115
  public static class Builder {
×
116

117
    protected String id;
118

119
    protected EnumWrapper<WorkflowFlowsOutcomesTypeField> type;
120

121
    protected String name;
122

123
    protected EnumWrapper<WorkflowFlowsOutcomesActionTypeField> actionType;
124

125
    protected List<WorkflowFlowsOutcomesIfRejectedField> ifRejected;
126

127
    public Builder id(String id) {
128
      this.id = id;
×
129
      return this;
×
130
    }
131

132
    public Builder type(WorkflowFlowsOutcomesTypeField type) {
133
      this.type = new EnumWrapper<WorkflowFlowsOutcomesTypeField>(type);
×
134
      return this;
×
135
    }
136

137
    public Builder type(EnumWrapper<WorkflowFlowsOutcomesTypeField> type) {
UNCOV
138
      this.type = type;
×
139
      return this;
×
140
    }
141

142
    public Builder name(String name) {
143
      this.name = name;
×
144
      return this;
×
145
    }
146

147
    public Builder actionType(WorkflowFlowsOutcomesActionTypeField actionType) {
UNCOV
148
      this.actionType = new EnumWrapper<WorkflowFlowsOutcomesActionTypeField>(actionType);
×
149
      return this;
×
150
    }
151

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

157
    public Builder ifRejected(List<WorkflowFlowsOutcomesIfRejectedField> ifRejected) {
UNCOV
158
      this.ifRejected = ifRejected;
×
159
      return this;
×
160
    }
161

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