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

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.keywordskillcardorstatusskillcardortimelineskillcardortranscriptskillcard.KeywordSkillCardOrStatusSkillCardOrTimelineSkillCardOrTranscriptSkillCard;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.List;
7
import java.util.Objects;
8

9
public class SkillCardsMetadata extends SerializableObject {
10

11
  @JsonProperty("$canEdit")
12
  protected Boolean canEdit;
13

14
  @JsonProperty("$id")
15
  protected String id;
16

17
  @JsonProperty("$parent")
18
  protected String parent;
19

20
  @JsonProperty("$scope")
21
  protected String scope;
22

23
  @JsonProperty("$template")
24
  protected String template;
25

26
  @JsonProperty("$type")
27
  protected String type;
28

29
  @JsonProperty("$typeVersion")
30
  protected Long typeVersion;
31

32
  @JsonProperty("$version")
33
  protected Long version;
34

35
  protected List<KeywordSkillCardOrStatusSkillCardOrTimelineSkillCardOrTranscriptSkillCard> cards;
36

37
  public SkillCardsMetadata() {
38
    super();
×
39
  }
×
40

41
  protected SkillCardsMetadata(Builder builder) {
42
    super();
×
43
    this.canEdit = builder.canEdit;
×
44
    this.id = builder.id;
×
45
    this.parent = builder.parent;
×
46
    this.scope = builder.scope;
×
47
    this.template = builder.template;
×
48
    this.type = builder.type;
×
49
    this.typeVersion = builder.typeVersion;
×
50
    this.version = builder.version;
×
51
    this.cards = builder.cards;
×
52
  }
×
53

54
  public Boolean getCanEdit() {
55
    return canEdit;
×
56
  }
57

58
  public String getId() {
59
    return id;
×
60
  }
61

62
  public String getParent() {
63
    return parent;
×
64
  }
65

66
  public String getScope() {
67
    return scope;
×
68
  }
69

70
  public String getTemplate() {
71
    return template;
×
72
  }
73

74
  public String getType() {
75
    return type;
×
76
  }
77

78
  public Long getTypeVersion() {
79
    return typeVersion;
×
80
  }
81

82
  public Long getVersion() {
83
    return version;
×
84
  }
85

86
  public List<KeywordSkillCardOrStatusSkillCardOrTimelineSkillCardOrTranscriptSkillCard>
87
      getCards() {
88
    return cards;
×
89
  }
90

91
  @Override
92
  public boolean equals(Object o) {
93
    if (this == o) {
×
94
      return true;
×
95
    }
96
    if (o == null || getClass() != o.getClass()) {
×
97
      return false;
×
98
    }
99
    SkillCardsMetadata casted = (SkillCardsMetadata) o;
×
100
    return Objects.equals(canEdit, casted.canEdit)
×
101
        && Objects.equals(id, casted.id)
×
102
        && Objects.equals(parent, casted.parent)
×
103
        && Objects.equals(scope, casted.scope)
×
104
        && Objects.equals(template, casted.template)
×
105
        && Objects.equals(type, casted.type)
×
106
        && Objects.equals(typeVersion, casted.typeVersion)
×
107
        && Objects.equals(version, casted.version)
×
108
        && Objects.equals(cards, casted.cards);
×
109
  }
110

111
  @Override
112
  public int hashCode() {
113
    return Objects.hash(canEdit, id, parent, scope, template, type, typeVersion, version, cards);
×
114
  }
115

116
  @Override
117
  public String toString() {
118
    return "SkillCardsMetadata{"
×
119
        + "canEdit='"
120
        + canEdit
121
        + '\''
122
        + ", "
123
        + "id='"
124
        + id
125
        + '\''
126
        + ", "
127
        + "parent='"
128
        + parent
129
        + '\''
130
        + ", "
131
        + "scope='"
132
        + scope
133
        + '\''
134
        + ", "
135
        + "template='"
136
        + template
137
        + '\''
138
        + ", "
139
        + "type='"
140
        + type
141
        + '\''
142
        + ", "
143
        + "typeVersion='"
144
        + typeVersion
145
        + '\''
146
        + ", "
147
        + "version='"
148
        + version
149
        + '\''
150
        + ", "
151
        + "cards='"
152
        + cards
153
        + '\''
154
        + "}";
155
  }
156

NEW
157
  public static class Builder {
×
158

159
    protected Boolean canEdit;
160

161
    protected String id;
162

163
    protected String parent;
164

165
    protected String scope;
166

167
    protected String template;
168

169
    protected String type;
170

171
    protected Long typeVersion;
172

173
    protected Long version;
174

175
    protected List<KeywordSkillCardOrStatusSkillCardOrTimelineSkillCardOrTranscriptSkillCard> cards;
176

177
    public Builder canEdit(Boolean canEdit) {
178
      this.canEdit = canEdit;
×
179
      return this;
×
180
    }
181

182
    public Builder id(String id) {
183
      this.id = id;
×
184
      return this;
×
185
    }
186

187
    public Builder parent(String parent) {
188
      this.parent = parent;
×
189
      return this;
×
190
    }
191

192
    public Builder scope(String scope) {
193
      this.scope = scope;
×
194
      return this;
×
195
    }
196

197
    public Builder template(String template) {
198
      this.template = template;
×
199
      return this;
×
200
    }
201

202
    public Builder type(String type) {
203
      this.type = type;
×
204
      return this;
×
205
    }
206

207
    public Builder typeVersion(Long typeVersion) {
208
      this.typeVersion = typeVersion;
×
209
      return this;
×
210
    }
211

212
    public Builder version(Long version) {
213
      this.version = version;
×
214
      return this;
×
215
    }
216

217
    public Builder cards(
218
        List<KeywordSkillCardOrStatusSkillCardOrTimelineSkillCardOrTranscriptSkillCard> cards) {
219
      this.cards = cards;
×
220
      return this;
×
221
    }
222

223
    public SkillCardsMetadata build() {
224
      return new SkillCardsMetadata(this);
×
225
    }
226
  }
227
}
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