• 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

8.33
/src/main/java/com/box/sdkgen/schemas/usercollaborations/UserCollaborations.java
1
package com.box.sdkgen.schemas.usercollaborations;
2

3
import com.box.sdkgen.schemas.userbase.UserBase;
4
import com.box.sdkgen.schemas.userbase.UserBaseTypeField;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Objects;
9

10
/** A mini representation of a user, can be returned only when the status is `pending`. */
11
@JsonFilter("nullablePropertyFilter")
12
public class UserCollaborations extends UserBase {
13

14
  /**
15
   * The display name of this user. If the collaboration status is `pending`, an empty string is
16
   * returned.
17
   */
18
  protected String name;
19

20
  /**
21
   * The primary email address of this user. If the collaboration status is `pending`, an empty
22
   * string is returned.
23
   */
24
  protected String login;
25

26
  /** If set to `false`, the user is either deactivated or deleted. */
27
  @JsonProperty("is_active")
28
  protected Boolean isActive;
29

30
  public UserCollaborations(@JsonProperty("id") String id) {
31
    super(id);
1✔
32
  }
1✔
33

34
  protected UserCollaborations(Builder builder) {
35
    super(builder);
×
36
    this.name = builder.name;
×
37
    this.login = builder.login;
×
38
    this.isActive = builder.isActive;
×
39
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
40
  }
×
41

42
  public String getName() {
43
    return name;
1✔
44
  }
45

46
  public String getLogin() {
47
    return login;
×
48
  }
49

50
  public Boolean getIsActive() {
51
    return isActive;
×
52
  }
53

54
  @Override
55
  public boolean equals(Object o) {
56
    if (this == o) {
×
57
      return true;
×
58
    }
59
    if (o == null || getClass() != o.getClass()) {
×
60
      return false;
×
61
    }
62
    UserCollaborations casted = (UserCollaborations) o;
×
63
    return Objects.equals(id, casted.id)
×
64
        && Objects.equals(type, casted.type)
×
65
        && Objects.equals(name, casted.name)
×
66
        && Objects.equals(login, casted.login)
×
67
        && Objects.equals(isActive, casted.isActive);
×
68
  }
69

70
  @Override
71
  public int hashCode() {
72
    return Objects.hash(id, type, name, login, isActive);
×
73
  }
74

75
  @Override
76
  public String toString() {
77
    return "UserCollaborations{"
×
78
        + "id='"
79
        + id
80
        + '\''
81
        + ", "
82
        + "type='"
83
        + type
84
        + '\''
85
        + ", "
86
        + "name='"
87
        + name
88
        + '\''
89
        + ", "
90
        + "login='"
91
        + login
92
        + '\''
93
        + ", "
94
        + "isActive='"
95
        + isActive
96
        + '\''
97
        + "}";
98
  }
99

100
  public static class Builder extends UserBase.Builder {
101

102
    protected String name;
103

104
    protected String login;
105

106
    protected Boolean isActive;
107

108
    public Builder(String id) {
109
      super(id);
×
110
    }
×
111

112
    public Builder name(String name) {
113
      this.name = name;
×
114
      return this;
×
115
    }
116

117
    public Builder login(String login) {
118
      this.login = login;
×
119
      return this;
×
120
    }
121

122
    public Builder isActive(Boolean isActive) {
123
      this.isActive = isActive;
×
124
      return this;
×
125
    }
126

127
    @Override
128
    public Builder type(UserBaseTypeField type) {
129
      this.type = new EnumWrapper<UserBaseTypeField>(type);
×
130
      return this;
×
131
    }
132

133
    @Override
134
    public Builder type(EnumWrapper<UserBaseTypeField> type) {
135
      this.type = type;
×
136
      return this;
×
137
    }
138

139
    public UserCollaborations build() {
140
      return new UserCollaborations(this);
×
141
    }
142
  }
143
}
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