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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

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

11820 existing lines in 631 files now uncovered.

16946 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

21.43
/src/main/java/com/box/sdkgen/schemas/termsofservicebase/TermsOfServiceBase.java
1
package com.box.sdkgen.schemas.termsofservicebase;
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.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class TermsOfServiceBase extends SerializableObject {
14

15
  protected final String id;
16

17
  @JsonDeserialize(
18
      using = TermsOfServiceBaseTypeField.TermsOfServiceBaseTypeFieldDeserializer.class)
19
  @JsonSerialize(using = TermsOfServiceBaseTypeField.TermsOfServiceBaseTypeFieldSerializer.class)
20
  protected EnumWrapper<TermsOfServiceBaseTypeField> type;
21

22
  public TermsOfServiceBase(@JsonProperty("id") String id) {
23
    super();
1✔
24
    this.id = id;
1✔
25
    this.type =
1✔
26
        new EnumWrapper<TermsOfServiceBaseTypeField>(TermsOfServiceBaseTypeField.TERMS_OF_SERVICE);
27
  }
1✔
28

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

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

40
  public EnumWrapper<TermsOfServiceBaseTypeField> getType() {
41
    return type;
1✔
42
  }
43

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

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

61
  @Override
62
  public String toString() {
UNCOV
63
    return "TermsOfServiceBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
64
  }
65

66
  public static class Builder extends NullableFieldTracker {
67

68
    protected final String id;
69

70
    protected EnumWrapper<TermsOfServiceBaseTypeField> type;
71

72
    public Builder(String id) {
73
      super();
×
UNCOV
74
      this.id = id;
×
UNCOV
75
      this.type =
×
76
          new EnumWrapper<TermsOfServiceBaseTypeField>(
77
              TermsOfServiceBaseTypeField.TERMS_OF_SERVICE);
UNCOV
78
    }
×
79

80
    public Builder type(TermsOfServiceBaseTypeField type) {
81
      this.type = new EnumWrapper<TermsOfServiceBaseTypeField>(type);
×
82
      return this;
×
83
    }
84

85
    public Builder type(EnumWrapper<TermsOfServiceBaseTypeField> type) {
86
      this.type = type;
×
UNCOV
87
      return this;
×
88
    }
89

90
    public TermsOfServiceBase build() {
UNCOV
91
      return new TermsOfServiceBase(this);
×
92
    }
93
  }
94
}
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