• 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

7.84
/src/main/java/com/box/sdkgen/schemas/metadatafull/MetadataFull.java
1
package com.box.sdkgen.schemas.metadatafull;
2

3
import com.box.sdkgen.schemas.metadata.Metadata;
4
import com.fasterxml.jackson.annotation.JsonAnyGetter;
5
import com.fasterxml.jackson.annotation.JsonAnySetter;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Map;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class MetadataFull extends Metadata {
13

14
  @JsonProperty("$canEdit")
15
  protected Boolean canEdit;
16

17
  @JsonProperty("$id")
18
  protected String id;
19

20
  @JsonProperty("$type")
21
  protected String type;
22

23
  @JsonProperty("$typeVersion")
24
  protected Long typeVersion;
25

26
  @JsonAnyGetter @JsonAnySetter protected Map<String, Object> extraData;
27

28
  public MetadataFull() {
29
    super();
1✔
30
  }
1✔
31

32
  protected MetadataFull(Builder builder) {
33
    super(builder);
×
34
    this.canEdit = builder.canEdit;
×
35
    this.id = builder.id;
×
36
    this.type = builder.type;
×
37
    this.typeVersion = builder.typeVersion;
×
UNCOV
38
    this.extraData = builder.extraData;
×
UNCOV
39
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
40
  }
×
41

42
  public Boolean getCanEdit() {
UNCOV
43
    return canEdit;
×
44
  }
45

46
  public String getId() {
47
    return id;
1✔
48
  }
49

50
  public String getType() {
UNCOV
51
    return type;
×
52
  }
53

54
  public Long getTypeVersion() {
UNCOV
55
    return typeVersion;
×
56
  }
57

58
  public Map<String, Object> getExtraData() {
59
    return extraData;
1✔
60
  }
61

62
  @Override
63
  public boolean equals(Object o) {
64
    if (this == o) {
×
65
      return true;
×
66
    }
67
    if (o == null || getClass() != o.getClass()) {
×
68
      return false;
×
69
    }
70
    MetadataFull casted = (MetadataFull) o;
×
71
    return Objects.equals(parent, casted.parent)
×
72
        && Objects.equals(template, casted.template)
×
73
        && Objects.equals(scope, casted.scope)
×
74
        && Objects.equals(version, casted.version)
×
75
        && Objects.equals(canEdit, casted.canEdit)
×
76
        && Objects.equals(id, casted.id)
×
UNCOV
77
        && Objects.equals(type, casted.type)
×
UNCOV
78
        && Objects.equals(typeVersion, casted.typeVersion)
×
UNCOV
79
        && Objects.equals(extraData, casted.extraData);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
UNCOV
84
    return Objects.hash(
×
85
        parent, template, scope, version, canEdit, id, type, typeVersion, extraData);
86
  }
87

88
  @Override
89
  public String toString() {
UNCOV
90
    return "MetadataFull{"
×
91
        + "parent='"
92
        + parent
93
        + '\''
94
        + ", "
95
        + "template='"
96
        + template
97
        + '\''
98
        + ", "
99
        + "scope='"
100
        + scope
101
        + '\''
102
        + ", "
103
        + "version='"
104
        + version
105
        + '\''
106
        + ", "
107
        + "canEdit='"
108
        + canEdit
109
        + '\''
110
        + ", "
111
        + "id='"
112
        + id
113
        + '\''
114
        + ", "
115
        + "type='"
116
        + type
117
        + '\''
118
        + ", "
119
        + "typeVersion='"
120
        + typeVersion
121
        + '\''
122
        + ", "
123
        + "extraData='"
124
        + extraData
125
        + '\''
126
        + "}";
127
  }
128

UNCOV
129
  public static class Builder extends Metadata.Builder {
×
130

131
    protected Boolean canEdit;
132

133
    protected String id;
134

135
    protected String type;
136

137
    protected Long typeVersion;
138

139
    protected Map<String, Object> extraData;
140

141
    public Builder canEdit(Boolean canEdit) {
UNCOV
142
      this.canEdit = canEdit;
×
UNCOV
143
      return this;
×
144
    }
145

146
    public Builder id(String id) {
UNCOV
147
      this.id = id;
×
UNCOV
148
      return this;
×
149
    }
150

151
    public Builder type(String type) {
UNCOV
152
      this.type = type;
×
UNCOV
153
      return this;
×
154
    }
155

156
    public Builder typeVersion(Long typeVersion) {
UNCOV
157
      this.typeVersion = typeVersion;
×
UNCOV
158
      return this;
×
159
    }
160

161
    public Builder extraData(Map<String, Object> extraData) {
UNCOV
162
      this.extraData = extraData;
×
UNCOV
163
      return this;
×
164
    }
165

166
    @Override
167
    public Builder parent(String parent) {
UNCOV
168
      this.parent = parent;
×
UNCOV
169
      return this;
×
170
    }
171

172
    @Override
173
    public Builder template(String template) {
UNCOV
174
      this.template = template;
×
UNCOV
175
      return this;
×
176
    }
177

178
    @Override
179
    public Builder scope(String scope) {
UNCOV
180
      this.scope = scope;
×
UNCOV
181
      return this;
×
182
    }
183

184
    @Override
185
    public Builder version(Long version) {
UNCOV
186
      this.version = version;
×
UNCOV
187
      return this;
×
188
    }
189

190
    public MetadataFull build() {
UNCOV
191
      return new MetadataFull(this);
×
192
    }
193
  }
194
}
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