• 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

10.0
/src/main/java/com/box/sdkgen/schemas/userfull/UserFullEnterpriseField.java
1
package com.box.sdkgen.schemas.userfull;
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 UserFullEnterpriseField extends SerializableObject {
10

11
  protected String id;
12

13
  @JsonDeserialize(
14
      using = UserFullEnterpriseTypeField.UserFullEnterpriseTypeFieldDeserializer.class)
15
  @JsonSerialize(using = UserFullEnterpriseTypeField.UserFullEnterpriseTypeFieldSerializer.class)
16
  protected EnumWrapper<UserFullEnterpriseTypeField> type;
17

18
  protected String name;
19

20
  public UserFullEnterpriseField() {
21
    super();
1✔
22
  }
1✔
23

24
  protected UserFullEnterpriseField(Builder builder) {
25
    super();
×
26
    this.id = builder.id;
×
27
    this.type = builder.type;
×
28
    this.name = builder.name;
×
29
  }
×
30

31
  public String getId() {
32
    return id;
1✔
33
  }
34

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

39
  public String getName() {
40
    return name;
×
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
    UserFullEnterpriseField casted = (UserFullEnterpriseField) o;
×
52
    return Objects.equals(id, casted.id)
×
53
        && Objects.equals(type, casted.type)
×
54
        && Objects.equals(name, casted.name);
×
55
  }
56

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

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

NEW
79
  public static class Builder {
×
80

81
    protected String id;
82

83
    protected EnumWrapper<UserFullEnterpriseTypeField> type;
84

85
    protected String name;
86

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

92
    public Builder type(UserFullEnterpriseTypeField type) {
93
      this.type = new EnumWrapper<UserFullEnterpriseTypeField>(type);
×
94
      return this;
×
95
    }
96

97
    public Builder type(EnumWrapper<UserFullEnterpriseTypeField> type) {
98
      this.type = type;
×
99
      return this;
×
100
    }
101

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

107
    public UserFullEnterpriseField build() {
108
      return new UserFullEnterpriseField(this);
×
109
    }
110
  }
111
}
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