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

box / box-java-sdk-gen / #290

24 Jun 2025 01:20PM UTC coverage: 35.757% (+0.1%) from 35.632%
#290

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

11777 existing lines in 624 files now uncovered.

16984 of 47499 relevant lines covered (35.76%)

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/trackingcode/TrackingCode.java
1
package com.box.sdkgen.schemas.trackingcode;
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 TrackingCode extends SerializableObject {
13

14
  @JsonDeserialize(using = TrackingCodeTypeField.TrackingCodeTypeFieldDeserializer.class)
15
  @JsonSerialize(using = TrackingCodeTypeField.TrackingCodeTypeFieldSerializer.class)
16
  protected EnumWrapper<TrackingCodeTypeField> type;
17

18
  protected String name;
19

20
  protected String value;
21

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

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

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

38
  public String getName() {
39
    return name;
×
40
  }
41

42
  public String getValue() {
UNCOV
43
    return value;
×
44
  }
45

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

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

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

UNCOV
82
  public static class Builder extends NullableFieldTracker {
×
83

84
    protected EnumWrapper<TrackingCodeTypeField> type;
85

86
    protected String name;
87

88
    protected String value;
89

90
    public Builder type(TrackingCodeTypeField type) {
UNCOV
91
      this.type = new EnumWrapper<TrackingCodeTypeField>(type);
×
92
      return this;
×
93
    }
94

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

100
    public Builder name(String name) {
UNCOV
101
      this.name = name;
×
102
      return this;
×
103
    }
104

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

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