• 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

0.0
/src/main/java/com/box/sdkgen/schemas/collaboratorvariable/CollaboratorVariable.java
1
package com.box.sdkgen.schemas.collaboratorvariable;
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.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.List;
11
import java.util.Objects;
12

13
/**
14
 * A collaborator object. Allows to specify a list of user ID's that are affected by the workflow
15
 * result.
16
 */
17
@JsonFilter("nullablePropertyFilter")
18
public class CollaboratorVariable extends SerializableObject {
19

20
  /** Collaborator object type. */
21
  @JsonDeserialize(
22
      using = CollaboratorVariableTypeField.CollaboratorVariableTypeFieldDeserializer.class)
23
  @JsonSerialize(
24
      using = CollaboratorVariableTypeField.CollaboratorVariableTypeFieldSerializer.class)
25
  protected EnumWrapper<CollaboratorVariableTypeField> type;
26

27
  /** Variable type for the Collaborator object. */
28
  @JsonDeserialize(
29
      using =
30
          CollaboratorVariableVariableTypeField.CollaboratorVariableVariableTypeFieldDeserializer
31
              .class)
32
  @JsonSerialize(
33
      using =
34
          CollaboratorVariableVariableTypeField.CollaboratorVariableVariableTypeFieldSerializer
35
              .class)
36
  @JsonProperty("variable_type")
37
  protected EnumWrapper<CollaboratorVariableVariableTypeField> variableType;
38

39
  /** A list of user IDs. */
40
  @JsonProperty("variable_value")
41
  protected final List<CollaboratorVariableVariableValueField> variableValue;
42

43
  public CollaboratorVariable(
44
      @JsonProperty("variable_value") List<CollaboratorVariableVariableValueField> variableValue) {
45
    super();
×
46
    this.variableValue = variableValue;
×
47
    this.type =
×
48
        new EnumWrapper<CollaboratorVariableTypeField>(CollaboratorVariableTypeField.VARIABLE);
49
    this.variableType =
×
50
        new EnumWrapper<CollaboratorVariableVariableTypeField>(
51
            CollaboratorVariableVariableTypeField.USER_LIST);
52
  }
×
53

54
  protected CollaboratorVariable(Builder builder) {
55
    super();
×
56
    this.type = builder.type;
×
57
    this.variableType = builder.variableType;
×
58
    this.variableValue = builder.variableValue;
×
59
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
60
  }
×
61

62
  public EnumWrapper<CollaboratorVariableTypeField> getType() {
63
    return type;
×
64
  }
65

66
  public EnumWrapper<CollaboratorVariableVariableTypeField> getVariableType() {
67
    return variableType;
×
68
  }
69

70
  public List<CollaboratorVariableVariableValueField> getVariableValue() {
71
    return variableValue;
×
72
  }
73

74
  @Override
75
  public boolean equals(Object o) {
76
    if (this == o) {
×
77
      return true;
×
78
    }
79
    if (o == null || getClass() != o.getClass()) {
×
80
      return false;
×
81
    }
82
    CollaboratorVariable casted = (CollaboratorVariable) o;
×
83
    return Objects.equals(type, casted.type)
×
84
        && Objects.equals(variableType, casted.variableType)
×
85
        && Objects.equals(variableValue, casted.variableValue);
×
86
  }
87

88
  @Override
89
  public int hashCode() {
90
    return Objects.hash(type, variableType, variableValue);
×
91
  }
92

93
  @Override
94
  public String toString() {
95
    return "CollaboratorVariable{"
×
96
        + "type='"
97
        + type
98
        + '\''
99
        + ", "
100
        + "variableType='"
101
        + variableType
102
        + '\''
103
        + ", "
104
        + "variableValue='"
105
        + variableValue
106
        + '\''
107
        + "}";
108
  }
109

110
  public static class Builder extends NullableFieldTracker {
111

112
    protected EnumWrapper<CollaboratorVariableTypeField> type;
113

114
    protected EnumWrapper<CollaboratorVariableVariableTypeField> variableType;
115

116
    protected final List<CollaboratorVariableVariableValueField> variableValue;
117

118
    public Builder(List<CollaboratorVariableVariableValueField> variableValue) {
119
      super();
×
120
      this.variableValue = variableValue;
×
121
      this.type =
×
122
          new EnumWrapper<CollaboratorVariableTypeField>(CollaboratorVariableTypeField.VARIABLE);
123
      this.variableType =
×
124
          new EnumWrapper<CollaboratorVariableVariableTypeField>(
125
              CollaboratorVariableVariableTypeField.USER_LIST);
126
    }
×
127

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

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

138
    public Builder variableType(CollaboratorVariableVariableTypeField variableType) {
139
      this.variableType = new EnumWrapper<CollaboratorVariableVariableTypeField>(variableType);
×
140
      return this;
×
141
    }
142

143
    public Builder variableType(EnumWrapper<CollaboratorVariableVariableTypeField> variableType) {
144
      this.variableType = variableType;
×
145
      return this;
×
146
    }
147

148
    public CollaboratorVariable build() {
149
      return new CollaboratorVariable(this);
×
150
    }
151
  }
152
}
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