• 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/SkillInvocationEnterpriseField.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.databind.annotation.JsonDeserialize;
6
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
7
import java.util.Objects;
8

9
public class SkillInvocationEnterpriseField extends SerializableObject {
10

11
  protected String id;
12

13
  @JsonDeserialize(
14
      using =
15
          SkillInvocationEnterpriseTypeField.SkillInvocationEnterpriseTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using = SkillInvocationEnterpriseTypeField.SkillInvocationEnterpriseTypeFieldSerializer.class)
18
  protected EnumWrapper<SkillInvocationEnterpriseTypeField> type;
19

20
  protected String name;
21

22
  public SkillInvocationEnterpriseField() {
23
    super();
×
24
  }
×
25

26
  protected SkillInvocationEnterpriseField(Builder builder) {
27
    super();
×
28
    this.id = builder.id;
×
29
    this.type = builder.type;
×
30
    this.name = builder.name;
×
31
  }
×
32

33
  public String getId() {
34
    return id;
×
35
  }
36

37
  public EnumWrapper<SkillInvocationEnterpriseTypeField> getType() {
38
    return type;
×
39
  }
40

41
  public String getName() {
42
    return name;
×
43
  }
44

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

59
  @Override
60
  public int hashCode() {
61
    return Objects.hash(id, type, name);
×
62
  }
63

64
  @Override
65
  public String toString() {
66
    return "SkillInvocationEnterpriseField{"
×
67
        + "id='"
68
        + id
69
        + '\''
70
        + ", "
71
        + "type='"
72
        + type
73
        + '\''
74
        + ", "
75
        + "name='"
76
        + name
77
        + '\''
78
        + "}";
79
  }
80

NEW
81
  public static class Builder {
×
82

83
    protected String id;
84

85
    protected EnumWrapper<SkillInvocationEnterpriseTypeField> type;
86

87
    protected String name;
88

89
    public Builder id(String id) {
90
      this.id = id;
×
91
      return this;
×
92
    }
93

94
    public Builder type(SkillInvocationEnterpriseTypeField type) {
95
      this.type = new EnumWrapper<SkillInvocationEnterpriseTypeField>(type);
×
96
      return this;
×
97
    }
98

99
    public Builder type(EnumWrapper<SkillInvocationEnterpriseTypeField> type) {
UNCOV
100
      this.type = type;
×
101
      return this;
×
102
    }
103

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

109
    public SkillInvocationEnterpriseField build() {
110
      return new SkillInvocationEnterpriseField(this);
×
111
    }
112
  }
113
}
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