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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

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

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 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
  @JsonDeserialize(
17
      using =
18
          TrashFolderPathCollectionEntriesTypeField
19
              .TrashFolderPathCollectionEntriesTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using =
22
          TrashFolderPathCollectionEntriesTypeField
23
              .TrashFolderPathCollectionEntriesTypeFieldSerializer.class)
24
  protected EnumWrapper<TrashFolderPathCollectionEntriesTypeField> type;
25

26
  protected String id;
27

28
  @JsonProperty("sequence_id")
29
  @Nullable
30
  protected String sequenceId;
31

32
  @Nullable protected String etag;
33

34
  protected String name;
35

36
  public TrashFolderPathCollectionEntriesField() {
37
    super();
1✔
38
  }
1✔
39

40
  protected TrashFolderPathCollectionEntriesField(Builder builder) {
41
    super();
×
42
    this.type = builder.type;
×
UNCOV
43
    this.id = builder.id;
×
UNCOV
44
    this.sequenceId = builder.sequenceId;
×
45
    this.etag = builder.etag;
×
UNCOV
46
    this.name = builder.name;
×
UNCOV
47
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
48
  }
×
49

50
  public EnumWrapper<TrashFolderPathCollectionEntriesTypeField> getType() {
UNCOV
51
    return type;
×
52
  }
53

54
  public String getId() {
UNCOV
55
    return id;
×
56
  }
57

58
  public String getSequenceId() {
UNCOV
59
    return sequenceId;
×
60
  }
61

62
  public String getEtag() {
UNCOV
63
    return etag;
×
64
  }
65

66
  public String getName() {
67
    return name;
×
68
  }
69

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

86
  @Override
87
  public int hashCode() {
UNCOV
88
    return Objects.hash(type, id, sequenceId, etag, name);
×
89
  }
90

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

UNCOV
116
  public static class Builder extends NullableFieldTracker {
×
117

118
    protected EnumWrapper<TrashFolderPathCollectionEntriesTypeField> type;
119

120
    protected String id;
121

122
    protected String sequenceId;
123

124
    protected String etag;
125

126
    protected String name;
127

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

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

138
    public Builder id(String id) {
139
      this.id = id;
×
UNCOV
140
      return this;
×
141
    }
142

143
    public Builder sequenceId(String sequenceId) {
144
      this.sequenceId = sequenceId;
×
UNCOV
145
      this.markNullableFieldAsSet("sequence_id");
×
UNCOV
146
      return this;
×
147
    }
148

149
    public Builder etag(String etag) {
UNCOV
150
      this.etag = etag;
×
UNCOV
151
      this.markNullableFieldAsSet("etag");
×
UNCOV
152
      return this;
×
153
    }
154

155
    public Builder name(String name) {
UNCOV
156
      this.name = name;
×
UNCOV
157
      return this;
×
158
    }
159

160
    public TrashFolderPathCollectionEntriesField build() {
UNCOV
161
      return new TrashFolderPathCollectionEntriesField(this);
×
162
    }
163
  }
164
}
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