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

box / box-java-sdk-gen / #293

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

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

14.71
/src/main/java/com/box/sdkgen/schemas/metadatabase/MetadataBase.java
1
package com.box.sdkgen.schemas.metadatabase;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
@JsonFilter("nullablePropertyFilter")
10
public class MetadataBase extends SerializableObject {
11

12
  @JsonProperty("$parent")
13
  protected String parent;
14

15
  @JsonProperty("$template")
16
  protected String template;
17

18
  @JsonProperty("$scope")
19
  protected String scope;
20

21
  @JsonProperty("$version")
22
  protected Long version;
23

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

28
  protected MetadataBase(Builder builder) {
29
    super();
×
30
    this.parent = builder.parent;
×
31
    this.template = builder.template;
×
UNCOV
32
    this.scope = builder.scope;
×
UNCOV
33
    this.version = builder.version;
×
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
35
  }
×
36

37
  public String getParent() {
UNCOV
38
    return parent;
×
39
  }
40

41
  public String getTemplate() {
42
    return template;
1✔
43
  }
44

45
  public String getScope() {
46
    return scope;
1✔
47
  }
48

49
  public Long getVersion() {
50
    return version;
1✔
51
  }
52

53
  @Override
54
  public boolean equals(Object o) {
55
    if (this == o) {
×
UNCOV
56
      return true;
×
57
    }
58
    if (o == null || getClass() != o.getClass()) {
×
59
      return false;
×
60
    }
61
    MetadataBase casted = (MetadataBase) o;
×
UNCOV
62
    return Objects.equals(parent, casted.parent)
×
UNCOV
63
        && Objects.equals(template, casted.template)
×
UNCOV
64
        && Objects.equals(scope, casted.scope)
×
UNCOV
65
        && Objects.equals(version, casted.version);
×
66
  }
67

68
  @Override
69
  public int hashCode() {
UNCOV
70
    return Objects.hash(parent, template, scope, version);
×
71
  }
72

73
  @Override
74
  public String toString() {
UNCOV
75
    return "MetadataBase{"
×
76
        + "parent='"
77
        + parent
78
        + '\''
79
        + ", "
80
        + "template='"
81
        + template
82
        + '\''
83
        + ", "
84
        + "scope='"
85
        + scope
86
        + '\''
87
        + ", "
88
        + "version='"
89
        + version
90
        + '\''
91
        + "}";
92
  }
93

UNCOV
94
  public static class Builder extends NullableFieldTracker {
×
95

96
    protected String parent;
97

98
    protected String template;
99

100
    protected String scope;
101

102
    protected Long version;
103

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

109
    public Builder template(String template) {
UNCOV
110
      this.template = template;
×
111
      return this;
×
112
    }
113

114
    public Builder scope(String scope) {
UNCOV
115
      this.scope = scope;
×
116
      return this;
×
117
    }
118

119
    public Builder version(Long version) {
UNCOV
120
      this.version = version;
×
121
      return this;
×
122
    }
123

124
    public MetadataBase build() {
UNCOV
125
      return new MetadataBase(this);
×
126
    }
127
  }
128
}
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