• 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/skillinvocation/SkillInvocationSkillField.java
1
package com.box.sdkgen.schemas.skillinvocation;
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 SkillInvocationSkillField extends SerializableObject {
11

12
  protected String id;
13

14
  @JsonDeserialize(
15
      using = SkillInvocationSkillTypeField.SkillInvocationSkillTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using = SkillInvocationSkillTypeField.SkillInvocationSkillTypeFieldSerializer.class)
18
  protected EnumWrapper<SkillInvocationSkillTypeField> type;
19

20
  protected String name;
21

22
  @JsonProperty("api_key")
23
  protected String apiKey;
24

25
  public SkillInvocationSkillField() {
26
    super();
×
27
  }
×
28

29
  protected SkillInvocationSkillField(Builder builder) {
30
    super();
×
31
    this.id = builder.id;
×
32
    this.type = builder.type;
×
33
    this.name = builder.name;
×
34
    this.apiKey = builder.apiKey;
×
35
  }
×
36

37
  public String getId() {
38
    return id;
×
39
  }
40

41
  public EnumWrapper<SkillInvocationSkillTypeField> getType() {
42
    return type;
×
43
  }
44

45
  public String getName() {
46
    return name;
×
47
  }
48

49
  public String getApiKey() {
50
    return apiKey;
×
51
  }
52

53
  @Override
54
  public boolean equals(Object o) {
55
    if (this == o) {
×
56
      return true;
×
57
    }
58
    if (o == null || getClass() != o.getClass()) {
×
59
      return false;
×
60
    }
61
    SkillInvocationSkillField casted = (SkillInvocationSkillField) o;
×
62
    return Objects.equals(id, casted.id)
×
63
        && Objects.equals(type, casted.type)
×
64
        && Objects.equals(name, casted.name)
×
65
        && Objects.equals(apiKey, casted.apiKey);
×
66
  }
67

68
  @Override
69
  public int hashCode() {
70
    return Objects.hash(id, type, name, apiKey);
×
71
  }
72

73
  @Override
74
  public String toString() {
75
    return "SkillInvocationSkillField{"
×
76
        + "id='"
77
        + id
78
        + '\''
79
        + ", "
80
        + "type='"
81
        + type
82
        + '\''
83
        + ", "
84
        + "name='"
85
        + name
86
        + '\''
87
        + ", "
88
        + "apiKey='"
89
        + apiKey
90
        + '\''
91
        + "}";
92
  }
93

NEW
94
  public static class Builder {
×
95

96
    protected String id;
97

98
    protected EnumWrapper<SkillInvocationSkillTypeField> type;
99

100
    protected String name;
101

102
    protected String apiKey;
103

104
    public Builder id(String id) {
105
      this.id = id;
×
106
      return this;
×
107
    }
108

109
    public Builder type(SkillInvocationSkillTypeField type) {
110
      this.type = new EnumWrapper<SkillInvocationSkillTypeField>(type);
×
111
      return this;
×
112
    }
113

114
    public Builder type(EnumWrapper<SkillInvocationSkillTypeField> type) {
115
      this.type = type;
×
116
      return this;
×
117
    }
118

119
    public Builder name(String name) {
120
      this.name = name;
×
121
      return this;
×
122
    }
123

124
    public Builder apiKey(String apiKey) {
125
      this.apiKey = apiKey;
×
126
      return this;
×
127
    }
128

129
    public SkillInvocationSkillField build() {
130
      return new SkillInvocationSkillField(this);
×
131
    }
132
  }
133
}
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