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

12
  @JsonDeserialize(
13
      using =
14
          StatusSkillCardInvocationTypeField.StatusSkillCardInvocationTypeFieldDeserializer.class)
15
  @JsonSerialize(
16
      using = StatusSkillCardInvocationTypeField.StatusSkillCardInvocationTypeFieldSerializer.class)
17
  protected EnumWrapper<StatusSkillCardInvocationTypeField> type;
18

19
  protected final String id;
20

21
  public StatusSkillCardInvocationField(@JsonProperty("id") String id) {
22
    super();
×
23
    this.id = id;
×
24
    this.type =
×
25
        new EnumWrapper<StatusSkillCardInvocationTypeField>(
26
            StatusSkillCardInvocationTypeField.SKILL_INVOCATION);
27
  }
×
28

29
  protected StatusSkillCardInvocationField(Builder builder) {
30
    super();
×
31
    this.type = builder.type;
×
32
    this.id = builder.id;
×
33
  }
×
34

35
  public EnumWrapper<StatusSkillCardInvocationTypeField> getType() {
36
    return type;
×
37
  }
38

39
  public String getId() {
40
    return id;
×
41
  }
42

43
  @Override
44
  public boolean equals(Object o) {
45
    if (this == o) {
×
46
      return true;
×
47
    }
48
    if (o == null || getClass() != o.getClass()) {
×
49
      return false;
×
50
    }
51
    StatusSkillCardInvocationField casted = (StatusSkillCardInvocationField) o;
×
52
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
53
  }
54

55
  @Override
56
  public int hashCode() {
57
    return Objects.hash(type, id);
×
58
  }
59

60
  @Override
61
  public String toString() {
62
    return "StatusSkillCardInvocationField{"
×
63
        + "type='"
64
        + type
65
        + '\''
66
        + ", "
67
        + "id='"
68
        + id
69
        + '\''
70
        + "}";
71
  }
72

73
  public static class Builder {
74

75
    protected EnumWrapper<StatusSkillCardInvocationTypeField> type;
76

77
    protected final String id;
78

NEW
79
    public Builder(String id) {
×
80
      this.id = id;
×
81
      this.type =
×
82
          new EnumWrapper<StatusSkillCardInvocationTypeField>(
83
              StatusSkillCardInvocationTypeField.SKILL_INVOCATION);
84
    }
×
85

86
    public Builder type(StatusSkillCardInvocationTypeField type) {
87
      this.type = new EnumWrapper<StatusSkillCardInvocationTypeField>(type);
×
88
      return this;
×
89
    }
90

91
    public Builder type(EnumWrapper<StatusSkillCardInvocationTypeField> type) {
UNCOV
92
      this.type = type;
×
93
      return this;
×
94
    }
95

96
    public StatusSkillCardInvocationField build() {
97
      return new StatusSkillCardInvocationField(this);
×
98
    }
99
  }
100
}
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