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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

68 of 82 new or added lines in 2 files covered. (82.93%)

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

5.56
/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
@JsonFilter("nullablePropertyFilter")
11
public class UserCollaborations extends UserBase {
12

13
  protected String name;
14

15
  protected String login;
16

17
  @JsonProperty("is_active")
18
  protected Boolean isActive;
19

20
  public UserCollaborations(@JsonProperty("id") String id) {
21
    super(id);
1✔
22
  }
1✔
23

24
  protected UserCollaborations(Builder builder) {
25
    super(builder);
×
26
    this.name = builder.name;
×
27
    this.login = builder.login;
×
UNCOV
28
    this.isActive = builder.isActive;
×
UNCOV
29
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
30
  }
×
31

32
  public String getName() {
UNCOV
33
    return name;
×
34
  }
35

36
  public String getLogin() {
UNCOV
37
    return login;
×
38
  }
39

40
  public Boolean getIsActive() {
UNCOV
41
    return isActive;
×
42
  }
43

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

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

65
  @Override
66
  public String toString() {
UNCOV
67
    return "UserCollaborations{"
×
68
        + "id='"
69
        + id
70
        + '\''
71
        + ", "
72
        + "type='"
73
        + type
74
        + '\''
75
        + ", "
76
        + "name='"
77
        + name
78
        + '\''
79
        + ", "
80
        + "login='"
81
        + login
82
        + '\''
83
        + ", "
84
        + "isActive='"
85
        + isActive
86
        + '\''
87
        + "}";
88
  }
89

90
  public static class Builder extends UserBase.Builder {
91

92
    protected String name;
93

94
    protected String login;
95

96
    protected Boolean isActive;
97

98
    public Builder(String id) {
UNCOV
99
      super(id);
×
100
    }
×
101

102
    public Builder name(String name) {
UNCOV
103
      this.name = name;
×
UNCOV
104
      return this;
×
105
    }
106

107
    public Builder login(String login) {
UNCOV
108
      this.login = login;
×
UNCOV
109
      return this;
×
110
    }
111

112
    public Builder isActive(Boolean isActive) {
UNCOV
113
      this.isActive = isActive;
×
UNCOV
114
      return this;
×
115
    }
116

117
    @Override
118
    public Builder type(UserBaseTypeField type) {
UNCOV
119
      this.type = new EnumWrapper<UserBaseTypeField>(type);
×
UNCOV
120
      return this;
×
121
    }
122

123
    @Override
124
    public Builder type(EnumWrapper<UserBaseTypeField> type) {
UNCOV
125
      this.type = type;
×
UNCOV
126
      return this;
×
127
    }
128

129
    public UserCollaborations build() {
UNCOV
130
      return new UserCollaborations(this);
×
131
    }
132
  }
133
}
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