• 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

20.0
/src/main/java/com/box/sdkgen/schemas/folderbase/FolderBase.java
1
package com.box.sdkgen.schemas.folderbase;
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 FolderBase extends SerializableObject {
15

16
  protected final String id;
17

18
  @Nullable protected String etag;
19

20
  @JsonDeserialize(using = FolderBaseTypeField.FolderBaseTypeFieldDeserializer.class)
21
  @JsonSerialize(using = FolderBaseTypeField.FolderBaseTypeFieldSerializer.class)
22
  protected EnumWrapper<FolderBaseTypeField> type;
23

24
  public FolderBase(@JsonProperty("id") String id) {
25
    super();
1✔
26
    this.id = id;
1✔
27
    this.type = new EnumWrapper<FolderBaseTypeField>(FolderBaseTypeField.FOLDER);
1✔
28
  }
1✔
29

30
  protected FolderBase(Builder builder) {
31
    super();
×
UNCOV
32
    this.id = builder.id;
×
UNCOV
33
    this.etag = builder.etag;
×
UNCOV
34
    this.type = builder.type;
×
UNCOV
35
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
36
  }
×
37

38
  public String getId() {
39
    return id;
1✔
40
  }
41

42
  public String getEtag() {
43
    return etag;
1✔
44
  }
45

46
  public EnumWrapper<FolderBaseTypeField> getType() {
47
    return type;
1✔
48
  }
49

50
  @Override
51
  public boolean equals(Object o) {
UNCOV
52
    if (this == o) {
×
53
      return true;
×
54
    }
55
    if (o == null || getClass() != o.getClass()) {
×
56
      return false;
×
57
    }
UNCOV
58
    FolderBase casted = (FolderBase) o;
×
UNCOV
59
    return Objects.equals(id, casted.id)
×
UNCOV
60
        && Objects.equals(etag, casted.etag)
×
61
        && Objects.equals(type, casted.type);
×
62
  }
63

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(id, etag, type);
×
67
  }
68

69
  @Override
70
  public String toString() {
UNCOV
71
    return "FolderBase{"
×
72
        + "id='"
73
        + id
74
        + '\''
75
        + ", "
76
        + "etag='"
77
        + etag
78
        + '\''
79
        + ", "
80
        + "type='"
81
        + type
82
        + '\''
83
        + "}";
84
  }
85

86
  public static class Builder extends NullableFieldTracker {
87

88
    protected final String id;
89

90
    protected String etag;
91

92
    protected EnumWrapper<FolderBaseTypeField> type;
93

94
    public Builder(String id) {
95
      super();
×
96
      this.id = id;
×
UNCOV
97
      this.type = new EnumWrapper<FolderBaseTypeField>(FolderBaseTypeField.FOLDER);
×
UNCOV
98
    }
×
99

100
    public Builder etag(String etag) {
101
      this.etag = etag;
×
UNCOV
102
      this.markNullableFieldAsSet("etag");
×
UNCOV
103
      return this;
×
104
    }
105

106
    public Builder type(FolderBaseTypeField type) {
UNCOV
107
      this.type = new EnumWrapper<FolderBaseTypeField>(type);
×
UNCOV
108
      return this;
×
109
    }
110

111
    public Builder type(EnumWrapper<FolderBaseTypeField> type) {
UNCOV
112
      this.type = type;
×
UNCOV
113
      return this;
×
114
    }
115

116
    public FolderBase build() {
UNCOV
117
      return new FolderBase(this);
×
118
    }
119
  }
120
}
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