• 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/completionrulevariable/CompletionRuleVariable.java
1
package com.box.sdkgen.schemas.completionrulevariable;
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.Objects;
9

10
public class CompletionRuleVariable extends SerializableObject {
11

12
  @JsonDeserialize(
13
      using = CompletionRuleVariableTypeField.CompletionRuleVariableTypeFieldDeserializer.class)
14
  @JsonSerialize(
15
      using = CompletionRuleVariableTypeField.CompletionRuleVariableTypeFieldSerializer.class)
16
  protected EnumWrapper<CompletionRuleVariableTypeField> type;
17

18
  @JsonDeserialize(
19
      using =
20
          CompletionRuleVariableVariableTypeField
21
              .CompletionRuleVariableVariableTypeFieldDeserializer.class)
22
  @JsonSerialize(
23
      using =
24
          CompletionRuleVariableVariableTypeField.CompletionRuleVariableVariableTypeFieldSerializer
25
              .class)
26
  @JsonProperty("variable_type")
27
  protected EnumWrapper<CompletionRuleVariableVariableTypeField> variableType;
28

29
  @JsonDeserialize(
30
      using =
31
          CompletionRuleVariableVariableValueField
32
              .CompletionRuleVariableVariableValueFieldDeserializer.class)
33
  @JsonSerialize(
34
      using =
35
          CompletionRuleVariableVariableValueField
36
              .CompletionRuleVariableVariableValueFieldSerializer.class)
37
  @JsonProperty("variable_value")
38
  protected final EnumWrapper<CompletionRuleVariableVariableValueField> variableValue;
39

40
  public CompletionRuleVariable(
41
      @JsonProperty("variable_value")
42
          EnumWrapper<CompletionRuleVariableVariableValueField> variableValue) {
43
    super();
×
44
    this.variableValue = variableValue;
×
45
    this.type =
×
46
        new EnumWrapper<CompletionRuleVariableTypeField>(CompletionRuleVariableTypeField.VARIABLE);
47
    this.variableType =
×
48
        new EnumWrapper<CompletionRuleVariableVariableTypeField>(
49
            CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
50
  }
×
51

52
  public CompletionRuleVariable(CompletionRuleVariableVariableValueField variableValue) {
53
    super();
×
54
    this.variableValue = new EnumWrapper<CompletionRuleVariableVariableValueField>(variableValue);
×
55
    this.type =
×
56
        new EnumWrapper<CompletionRuleVariableTypeField>(CompletionRuleVariableTypeField.VARIABLE);
57
    this.variableType =
×
58
        new EnumWrapper<CompletionRuleVariableVariableTypeField>(
59
            CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
60
  }
×
61

62
  protected CompletionRuleVariable(Builder builder) {
63
    super();
×
64
    this.type = builder.type;
×
65
    this.variableType = builder.variableType;
×
66
    this.variableValue = builder.variableValue;
×
67
  }
×
68

69
  public EnumWrapper<CompletionRuleVariableTypeField> getType() {
70
    return type;
×
71
  }
72

73
  public EnumWrapper<CompletionRuleVariableVariableTypeField> getVariableType() {
74
    return variableType;
×
75
  }
76

77
  public EnumWrapper<CompletionRuleVariableVariableValueField> getVariableValue() {
78
    return variableValue;
×
79
  }
80

81
  @Override
82
  public boolean equals(Object o) {
83
    if (this == o) {
×
84
      return true;
×
85
    }
86
    if (o == null || getClass() != o.getClass()) {
×
87
      return false;
×
88
    }
89
    CompletionRuleVariable casted = (CompletionRuleVariable) o;
×
90
    return Objects.equals(type, casted.type)
×
91
        && Objects.equals(variableType, casted.variableType)
×
92
        && Objects.equals(variableValue, casted.variableValue);
×
93
  }
94

95
  @Override
96
  public int hashCode() {
97
    return Objects.hash(type, variableType, variableValue);
×
98
  }
99

100
  @Override
101
  public String toString() {
102
    return "CompletionRuleVariable{"
×
103
        + "type='"
104
        + type
105
        + '\''
106
        + ", "
107
        + "variableType='"
108
        + variableType
109
        + '\''
110
        + ", "
111
        + "variableValue='"
112
        + variableValue
113
        + '\''
114
        + "}";
115
  }
116

117
  public static class Builder {
118

119
    protected EnumWrapper<CompletionRuleVariableTypeField> type;
120

121
    protected EnumWrapper<CompletionRuleVariableVariableTypeField> variableType;
122

123
    protected final EnumWrapper<CompletionRuleVariableVariableValueField> variableValue;
124

NEW
125
    public Builder(EnumWrapper<CompletionRuleVariableVariableValueField> variableValue) {
×
126
      this.variableValue = variableValue;
×
127
      this.type =
×
128
          new EnumWrapper<CompletionRuleVariableTypeField>(
129
              CompletionRuleVariableTypeField.VARIABLE);
130
      this.variableType =
×
131
          new EnumWrapper<CompletionRuleVariableVariableTypeField>(
132
              CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
133
    }
×
134

NEW
135
    public Builder(CompletionRuleVariableVariableValueField variableValue) {
×
136
      this.variableValue = new EnumWrapper<CompletionRuleVariableVariableValueField>(variableValue);
×
137
      this.type =
×
138
          new EnumWrapper<CompletionRuleVariableTypeField>(
139
              CompletionRuleVariableTypeField.VARIABLE);
140
      this.variableType =
×
141
          new EnumWrapper<CompletionRuleVariableVariableTypeField>(
142
              CompletionRuleVariableVariableTypeField.TASK_COMPLETION_RULE);
143
    }
×
144

145
    public Builder type(CompletionRuleVariableTypeField type) {
146
      this.type = new EnumWrapper<CompletionRuleVariableTypeField>(type);
×
147
      return this;
×
148
    }
149

150
    public Builder type(EnumWrapper<CompletionRuleVariableTypeField> type) {
151
      this.type = type;
×
152
      return this;
×
153
    }
154

155
    public Builder variableType(CompletionRuleVariableVariableTypeField variableType) {
UNCOV
156
      this.variableType = new EnumWrapper<CompletionRuleVariableVariableTypeField>(variableType);
×
157
      return this;
×
158
    }
159

160
    public Builder variableType(EnumWrapper<CompletionRuleVariableVariableTypeField> variableType) {
UNCOV
161
      this.variableType = variableType;
×
162
      return this;
×
163
    }
164

165
    public CompletionRuleVariable build() {
166
      return new CompletionRuleVariable(this);
×
167
    }
168
  }
169
}
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