• 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

9.68
/src/main/java/com/box/sdkgen/schemas/invite/InviteInvitedToField.java
1
package com.box.sdkgen.schemas.invite;
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
@JsonFilter("nullablePropertyFilter")
12
public class InviteInvitedToField extends SerializableObject {
13

14
  /** The unique identifier for this enterprise. */
15
  protected String id;
16

17
  /** The value will always be `enterprise`. */
18
  @JsonDeserialize(using = InviteInvitedToTypeField.InviteInvitedToTypeFieldDeserializer.class)
19
  @JsonSerialize(using = InviteInvitedToTypeField.InviteInvitedToTypeFieldSerializer.class)
20
  protected EnumWrapper<InviteInvitedToTypeField> type;
21

22
  /** The name of the enterprise. */
23
  protected String name;
24

25
  public InviteInvitedToField() {
26
    super();
1✔
27
  }
1✔
28

29
  protected InviteInvitedToField(Builder builder) {
30
    super();
×
31
    this.id = builder.id;
×
32
    this.type = builder.type;
×
33
    this.name = builder.name;
×
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
35
  }
×
36

37
  public String getId() {
38
    return id;
1✔
39
  }
40

41
  public EnumWrapper<InviteInvitedToTypeField> getType() {
42
    return type;
×
43
  }
44

45
  public String getName() {
46
    return name;
×
47
  }
48

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

63
  @Override
64
  public int hashCode() {
65
    return Objects.hash(id, type, name);
×
66
  }
67

68
  @Override
69
  public String toString() {
70
    return "InviteInvitedToField{"
×
71
        + "id='"
72
        + id
73
        + '\''
74
        + ", "
75
        + "type='"
76
        + type
77
        + '\''
78
        + ", "
79
        + "name='"
80
        + name
81
        + '\''
82
        + "}";
83
  }
84

85
  public static class Builder extends NullableFieldTracker {
×
86

87
    protected String id;
88

89
    protected EnumWrapper<InviteInvitedToTypeField> type;
90

91
    protected String name;
92

93
    public Builder id(String id) {
94
      this.id = id;
×
95
      return this;
×
96
    }
97

98
    public Builder type(InviteInvitedToTypeField type) {
99
      this.type = new EnumWrapper<InviteInvitedToTypeField>(type);
×
100
      return this;
×
101
    }
102

103
    public Builder type(EnumWrapper<InviteInvitedToTypeField> type) {
104
      this.type = type;
×
105
      return this;
×
106
    }
107

108
    public Builder name(String name) {
109
      this.name = name;
×
110
      return this;
×
111
    }
112

113
    public InviteInvitedToField build() {
114
      return new InviteInvitedToField(this);
×
115
    }
116
  }
117
}
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