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

box / box-java-sdk-gen / #295

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

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%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

6.45
/src/main/java/com/box/sdkgen/schemas/termsofservice/TermsOfServiceEnterpriseField.java
1
package com.box.sdkgen.schemas.termsofservice;
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 TermsOfServiceEnterpriseField extends SerializableObject {
13

14
  protected String id;
15

16
  @JsonDeserialize(
17
      using = TermsOfServiceEnterpriseTypeField.TermsOfServiceEnterpriseTypeFieldDeserializer.class)
18
  @JsonSerialize(
19
      using = TermsOfServiceEnterpriseTypeField.TermsOfServiceEnterpriseTypeFieldSerializer.class)
20
  protected EnumWrapper<TermsOfServiceEnterpriseTypeField> type;
21

22
  protected String name;
23

24
  public TermsOfServiceEnterpriseField() {
25
    super();
1✔
26
  }
1✔
27

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

36
  public String getId() {
37
    return id;
×
38
  }
39

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

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

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

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

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

UNCOV
84
  public static class Builder extends NullableFieldTracker {
×
85

86
    protected String id;
87

88
    protected EnumWrapper<TermsOfServiceEnterpriseTypeField> type;
89

90
    protected String name;
91

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

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

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

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

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