• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

9.68
/src/main/java/com/box/sdkgen/schemas/userfull/UserFullEnterpriseField.java
1
package com.box.sdkgen.schemas.userfull;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class UserFullEnterpriseField extends SerializableObject {
13

14
  protected String id;
15

16
  @JsonDeserialize(
17
      using = UserFullEnterpriseTypeField.UserFullEnterpriseTypeFieldDeserializer.class)
18
  @JsonSerialize(using = UserFullEnterpriseTypeField.UserFullEnterpriseTypeFieldSerializer.class)
19
  protected EnumWrapper<UserFullEnterpriseTypeField> type;
20

21
  protected String name;
22

23
  public UserFullEnterpriseField() {
24
    super();
1✔
25
  }
1✔
26

27
  protected UserFullEnterpriseField(Builder builder) {
28
    super();
×
29
    this.id = builder.id;
×
UNCOV
30
    this.type = builder.type;
×
UNCOV
31
    this.name = builder.name;
×
UNCOV
32
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
33
  }
×
34

35
  public String getId() {
36
    return id;
1✔
37
  }
38

39
  public EnumWrapper<UserFullEnterpriseTypeField> getType() {
40
    return type;
×
41
  }
42

43
  public String getName() {
UNCOV
44
    return name;
×
45
  }
46

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

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

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

UNCOV
83
  public static class Builder extends NullableFieldTracker {
×
84

85
    protected String id;
86

87
    protected EnumWrapper<UserFullEnterpriseTypeField> type;
88

89
    protected String name;
90

91
    public Builder id(String id) {
UNCOV
92
      this.id = id;
×
93
      return this;
×
94
    }
95

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

101
    public Builder type(EnumWrapper<UserFullEnterpriseTypeField> type) {
UNCOV
102
      this.type = type;
×
103
      return this;
×
104
    }
105

106
    public Builder name(String name) {
UNCOV
107
      this.name = name;
×
108
      return this;
×
109
    }
110

111
    public UserFullEnterpriseField build() {
UNCOV
112
      return new UserFullEnterpriseField(this);
×
113
    }
114
  }
115
}
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