• 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

4.65
/src/main/java/com/box/sdkgen/schemas/trashfolder/TrashFolderPathCollectionEntriesField.java
1
package com.box.sdkgen.schemas.trashfolder;
2

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.internal.NullableFieldTracker;
5
import com.box.sdkgen.internal.SerializableObject;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class TrashFolderPathCollectionEntriesField extends SerializableObject {
15

16
  /** The value will always be `folder`. */
17
  @JsonDeserialize(
18
      using =
19
          TrashFolderPathCollectionEntriesTypeField
20
              .TrashFolderPathCollectionEntriesTypeFieldDeserializer.class)
21
  @JsonSerialize(
22
      using =
23
          TrashFolderPathCollectionEntriesTypeField
24
              .TrashFolderPathCollectionEntriesTypeFieldSerializer.class)
25
  protected EnumWrapper<TrashFolderPathCollectionEntriesTypeField> type;
26

27
  /** The unique identifier that represent a folder. */
28
  protected String id;
29

30
  /** This field is null for the Trash folder. */
31
  @JsonProperty("sequence_id")
32
  @Nullable
33
  protected String sequenceId;
34

35
  /** This field is null for the Trash folder. */
36
  @Nullable protected String etag;
37

38
  /** The name of the Trash folder. */
39
  protected String name;
40

41
  public TrashFolderPathCollectionEntriesField() {
42
    super();
1✔
43
  }
1✔
44

45
  protected TrashFolderPathCollectionEntriesField(Builder builder) {
46
    super();
×
47
    this.type = builder.type;
×
48
    this.id = builder.id;
×
49
    this.sequenceId = builder.sequenceId;
×
50
    this.etag = builder.etag;
×
51
    this.name = builder.name;
×
52
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
53
  }
×
54

55
  public EnumWrapper<TrashFolderPathCollectionEntriesTypeField> getType() {
56
    return type;
×
57
  }
58

59
  public String getId() {
60
    return id;
×
61
  }
62

63
  public String getSequenceId() {
64
    return sequenceId;
×
65
  }
66

67
  public String getEtag() {
68
    return etag;
×
69
  }
70

71
  public String getName() {
72
    return name;
×
73
  }
74

75
  @Override
76
  public boolean equals(Object o) {
77
    if (this == o) {
×
78
      return true;
×
79
    }
80
    if (o == null || getClass() != o.getClass()) {
×
81
      return false;
×
82
    }
83
    TrashFolderPathCollectionEntriesField casted = (TrashFolderPathCollectionEntriesField) o;
×
84
    return Objects.equals(type, casted.type)
×
85
        && Objects.equals(id, casted.id)
×
86
        && Objects.equals(sequenceId, casted.sequenceId)
×
87
        && Objects.equals(etag, casted.etag)
×
88
        && Objects.equals(name, casted.name);
×
89
  }
90

91
  @Override
92
  public int hashCode() {
93
    return Objects.hash(type, id, sequenceId, etag, name);
×
94
  }
95

96
  @Override
97
  public String toString() {
98
    return "TrashFolderPathCollectionEntriesField{"
×
99
        + "type='"
100
        + type
101
        + '\''
102
        + ", "
103
        + "id='"
104
        + id
105
        + '\''
106
        + ", "
107
        + "sequenceId='"
108
        + sequenceId
109
        + '\''
110
        + ", "
111
        + "etag='"
112
        + etag
113
        + '\''
114
        + ", "
115
        + "name='"
116
        + name
117
        + '\''
118
        + "}";
119
  }
120

121
  public static class Builder extends NullableFieldTracker {
×
122

123
    protected EnumWrapper<TrashFolderPathCollectionEntriesTypeField> type;
124

125
    protected String id;
126

127
    protected String sequenceId;
128

129
    protected String etag;
130

131
    protected String name;
132

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

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

143
    public Builder id(String id) {
144
      this.id = id;
×
145
      return this;
×
146
    }
147

148
    public Builder sequenceId(String sequenceId) {
149
      this.sequenceId = sequenceId;
×
150
      this.markNullableFieldAsSet("sequence_id");
×
151
      return this;
×
152
    }
153

154
    public Builder etag(String etag) {
155
      this.etag = etag;
×
156
      this.markNullableFieldAsSet("etag");
×
157
      return this;
×
158
    }
159

160
    public Builder name(String name) {
161
      this.name = name;
×
162
      return this;
×
163
    }
164

165
    public TrashFolderPathCollectionEntriesField build() {
166
      return new TrashFolderPathCollectionEntriesField(this);
×
167
    }
168
  }
169
}
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