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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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
/** An instance of a metadata template, which has been applied to a file or folder. */
12
@JsonFilter("nullablePropertyFilter")
13
public class MetadataFull extends Metadata {
14

15
  /** Whether the user can edit this metadata instance. */
16
  @JsonProperty("$canEdit")
17
  protected Boolean canEdit;
18

19
  /** A UUID to identify the metadata instance. */
20
  @JsonProperty("$id")
21
  protected String id;
22

23
  /**
24
   * A unique identifier for the "type" of this instance. This is an internal system property and
25
   * should not be used by a client application.
26
   */
27
  @JsonProperty("$type")
28
  protected String type;
29

30
  /**
31
   * The last-known version of the template of the object. This is an internal system property and
32
   * should not be used by a client application.
33
   */
34
  @JsonProperty("$typeVersion")
35
  protected Long typeVersion;
36

37
  @JsonAnyGetter @JsonAnySetter protected Map<String, Object> extraData;
38

39
  public MetadataFull() {
40
    super();
1✔
41
  }
1✔
42

43
  protected MetadataFull(Builder builder) {
44
    super(builder);
×
45
    this.canEdit = builder.canEdit;
×
46
    this.id = builder.id;
×
47
    this.type = builder.type;
×
48
    this.typeVersion = builder.typeVersion;
×
49
    this.extraData = builder.extraData;
×
50
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
51
  }
×
52

53
  public Boolean getCanEdit() {
54
    return canEdit;
×
55
  }
56

57
  public String getId() {
58
    return id;
1✔
59
  }
60

61
  public String getType() {
62
    return type;
×
63
  }
64

65
  public Long getTypeVersion() {
66
    return typeVersion;
×
67
  }
68

69
  public Map<String, Object> getExtraData() {
70
    return extraData;
1✔
71
  }
72

73
  @Override
74
  public boolean equals(Object o) {
75
    if (this == o) {
×
76
      return true;
×
77
    }
78
    if (o == null || getClass() != o.getClass()) {
×
79
      return false;
×
80
    }
81
    MetadataFull casted = (MetadataFull) o;
×
82
    return Objects.equals(parent, casted.parent)
×
83
        && Objects.equals(template, casted.template)
×
84
        && Objects.equals(scope, casted.scope)
×
85
        && Objects.equals(version, casted.version)
×
86
        && Objects.equals(canEdit, casted.canEdit)
×
87
        && Objects.equals(id, casted.id)
×
88
        && Objects.equals(type, casted.type)
×
89
        && Objects.equals(typeVersion, casted.typeVersion)
×
90
        && Objects.equals(extraData, casted.extraData);
×
91
  }
92

93
  @Override
94
  public int hashCode() {
95
    return Objects.hash(
×
96
        parent, template, scope, version, canEdit, id, type, typeVersion, extraData);
97
  }
98

99
  @Override
100
  public String toString() {
101
    return "MetadataFull{"
×
102
        + "parent='"
103
        + parent
104
        + '\''
105
        + ", "
106
        + "template='"
107
        + template
108
        + '\''
109
        + ", "
110
        + "scope='"
111
        + scope
112
        + '\''
113
        + ", "
114
        + "version='"
115
        + version
116
        + '\''
117
        + ", "
118
        + "canEdit='"
119
        + canEdit
120
        + '\''
121
        + ", "
122
        + "id='"
123
        + id
124
        + '\''
125
        + ", "
126
        + "type='"
127
        + type
128
        + '\''
129
        + ", "
130
        + "typeVersion='"
131
        + typeVersion
132
        + '\''
133
        + ", "
134
        + "extraData='"
135
        + extraData
136
        + '\''
137
        + "}";
138
  }
139

140
  public static class Builder extends Metadata.Builder {
×
141

142
    protected Boolean canEdit;
143

144
    protected String id;
145

146
    protected String type;
147

148
    protected Long typeVersion;
149

150
    protected Map<String, Object> extraData;
151

152
    public Builder canEdit(Boolean canEdit) {
153
      this.canEdit = canEdit;
×
154
      return this;
×
155
    }
156

157
    public Builder id(String id) {
158
      this.id = id;
×
159
      return this;
×
160
    }
161

162
    public Builder type(String type) {
163
      this.type = type;
×
164
      return this;
×
165
    }
166

167
    public Builder typeVersion(Long typeVersion) {
168
      this.typeVersion = typeVersion;
×
169
      return this;
×
170
    }
171

172
    public Builder extraData(Map<String, Object> extraData) {
173
      this.extraData = extraData;
×
174
      return this;
×
175
    }
176

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

183
    @Override
184
    public Builder template(String template) {
185
      this.template = template;
×
186
      return this;
×
187
    }
188

189
    @Override
190
    public Builder scope(String scope) {
191
      this.scope = scope;
×
192
      return this;
×
193
    }
194

195
    @Override
196
    public Builder version(Long version) {
197
      this.version = version;
×
198
      return this;
×
199
    }
200

201
    public MetadataFull build() {
202
      return new MetadataFull(this);
×
203
    }
204
  }
205
}
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