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

box / box-java-sdk / #4746

19 Aug 2025 10:21AM UTC coverage: 38.831% (+0.7%) from 38.166%
#4746

push

github

web-flow
feat: Support external user deletion API

20 of 167 new or added lines in 8 files covered. (11.98%)

145 existing lines in 18 files now uncovered.

19109 of 49211 relevant lines covered (38.83%)

0.39 hits per line

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

54.84
/src/main/java/com/box/sdkgen/schemas/metadatafilter/MetadataFilter.java
1
package com.box.sdkgen.schemas.metadatafilter;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.metadatafiltervalue.MetadataFilterValue;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Map;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class MetadataFilter extends SerializableObject {
15

16
  @JsonDeserialize(using = MetadataFilterScopeField.MetadataFilterScopeFieldDeserializer.class)
17
  @JsonSerialize(using = MetadataFilterScopeField.MetadataFilterScopeFieldSerializer.class)
18
  protected EnumWrapper<MetadataFilterScopeField> scope;
19

20
  protected String templateKey;
21

22
  protected Map<String, MetadataFilterValue> filters;
23

24
  public MetadataFilter() {
UNCOV
25
    super();
×
UNCOV
26
  }
×
27

28
  protected MetadataFilter(Builder builder) {
29
    super();
1✔
30
    this.scope = builder.scope;
1✔
31
    this.templateKey = builder.templateKey;
1✔
32
    this.filters = builder.filters;
1✔
33
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
34
  }
1✔
35

36
  public EnumWrapper<MetadataFilterScopeField> getScope() {
37
    return scope;
1✔
38
  }
39

40
  public String getTemplateKey() {
41
    return templateKey;
1✔
42
  }
43

44
  public Map<String, MetadataFilterValue> getFilters() {
45
    return filters;
1✔
46
  }
47

48
  @Override
49
  public boolean equals(Object o) {
UNCOV
50
    if (this == o) {
×
UNCOV
51
      return true;
×
52
    }
UNCOV
53
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
54
      return false;
×
55
    }
56
    MetadataFilter casted = (MetadataFilter) o;
×
57
    return Objects.equals(scope, casted.scope)
×
UNCOV
58
        && Objects.equals(templateKey, casted.templateKey)
×
59
        && Objects.equals(filters, casted.filters);
×
60
  }
61

62
  @Override
63
  public int hashCode() {
64
    return Objects.hash(scope, templateKey, filters);
×
65
  }
66

67
  @Override
68
  public String toString() {
UNCOV
69
    return "MetadataFilter{"
×
70
        + "scope='"
71
        + scope
72
        + '\''
73
        + ", "
74
        + "templateKey='"
75
        + templateKey
76
        + '\''
77
        + ", "
78
        + "filters='"
79
        + filters
80
        + '\''
81
        + "}";
82
  }
83

84
  public static class Builder extends NullableFieldTracker {
1✔
85

86
    protected EnumWrapper<MetadataFilterScopeField> scope;
87

88
    protected String templateKey;
89

90
    protected Map<String, MetadataFilterValue> filters;
91

92
    public Builder scope(MetadataFilterScopeField scope) {
93
      this.scope = new EnumWrapper<MetadataFilterScopeField>(scope);
1✔
94
      return this;
1✔
95
    }
96

97
    public Builder scope(EnumWrapper<MetadataFilterScopeField> scope) {
UNCOV
98
      this.scope = scope;
×
UNCOV
99
      return this;
×
100
    }
101

102
    public Builder templateKey(String templateKey) {
103
      this.templateKey = templateKey;
1✔
104
      return this;
1✔
105
    }
106

107
    public Builder filters(Map<String, MetadataFilterValue> filters) {
108
      this.filters = filters;
1✔
109
      return this;
1✔
110
    }
111

112
    public MetadataFilter build() {
113
      return new MetadataFilter(this);
1✔
114
    }
115
  }
116
}
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

© 2025 Coveralls, Inc