• 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

60.0
/src/main/java/com/box/sdkgen/schemas/shieldinformationbarrierbase/ShieldInformationBarrierBase.java
1
package com.box.sdkgen.schemas.shieldinformationbarrierbase;
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
/** A base representation of a shield information barrier object. */
12
@JsonFilter("nullablePropertyFilter")
13
public class ShieldInformationBarrierBase extends SerializableObject {
14

15
  /** The unique identifier for the shield information barrier. */
16
  protected String id;
17

18
  /** The type of the shield information barrier. */
19
  @JsonDeserialize(
20
      using =
21
          ShieldInformationBarrierBaseTypeField.ShieldInformationBarrierBaseTypeFieldDeserializer
22
              .class)
23
  @JsonSerialize(
24
      using =
25
          ShieldInformationBarrierBaseTypeField.ShieldInformationBarrierBaseTypeFieldSerializer
26
              .class)
27
  protected EnumWrapper<ShieldInformationBarrierBaseTypeField> type;
28

29
  public ShieldInformationBarrierBase() {
30
    super();
1✔
31
  }
1✔
32

33
  protected ShieldInformationBarrierBase(Builder builder) {
34
    super();
1✔
35
    this.id = builder.id;
1✔
36
    this.type = builder.type;
1✔
37
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
38
  }
1✔
39

40
  public String getId() {
41
    return id;
1✔
42
  }
43

44
  public EnumWrapper<ShieldInformationBarrierBaseTypeField> getType() {
45
    return type;
1✔
46
  }
47

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

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

65
  @Override
66
  public String toString() {
67
    return "ShieldInformationBarrierBase{"
×
68
        + "id='"
69
        + id
70
        + '\''
71
        + ", "
72
        + "type='"
73
        + type
74
        + '\''
75
        + "}";
76
  }
77

78
  public static class Builder extends NullableFieldTracker {
1✔
79

80
    protected String id;
81

82
    protected EnumWrapper<ShieldInformationBarrierBaseTypeField> type;
83

84
    public Builder id(String id) {
85
      this.id = id;
1✔
86
      return this;
1✔
87
    }
88

89
    public Builder type(ShieldInformationBarrierBaseTypeField type) {
90
      this.type = new EnumWrapper<ShieldInformationBarrierBaseTypeField>(type);
1✔
91
      return this;
1✔
92
    }
93

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

99
    public ShieldInformationBarrierBase build() {
100
      return new ShieldInformationBarrierBase(this);
1✔
101
    }
102
  }
103
}
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