• 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

21.43
/src/main/java/com/box/sdkgen/schemas/folderreference/FolderReference.java
1
package com.box.sdkgen.schemas.folderreference;
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.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class FolderReference extends SerializableObject {
14

15
  @JsonDeserialize(using = FolderReferenceTypeField.FolderReferenceTypeFieldDeserializer.class)
16
  @JsonSerialize(using = FolderReferenceTypeField.FolderReferenceTypeFieldSerializer.class)
17
  protected EnumWrapper<FolderReferenceTypeField> type;
18

19
  protected final String id;
20

21
  public FolderReference(@JsonProperty("id") String id) {
22
    super();
1✔
23
    this.id = id;
1✔
24
    this.type = new EnumWrapper<FolderReferenceTypeField>(FolderReferenceTypeField.FOLDER);
1✔
25
  }
1✔
26

27
  protected FolderReference(Builder builder) {
28
    super();
×
UNCOV
29
    this.type = builder.type;
×
UNCOV
30
    this.id = builder.id;
×
UNCOV
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
32
  }
×
33

34
  public EnumWrapper<FolderReferenceTypeField> getType() {
35
    return type;
1✔
36
  }
37

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

42
  @Override
43
  public boolean equals(Object o) {
44
    if (this == o) {
×
UNCOV
45
      return true;
×
46
    }
47
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
48
      return false;
×
49
    }
UNCOV
50
    FolderReference casted = (FolderReference) o;
×
UNCOV
51
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
52
  }
53

54
  @Override
55
  public int hashCode() {
UNCOV
56
    return Objects.hash(type, id);
×
57
  }
58

59
  @Override
60
  public String toString() {
UNCOV
61
    return "FolderReference{" + "type='" + type + '\'' + ", " + "id='" + id + '\'' + "}";
×
62
  }
63

64
  public static class Builder extends NullableFieldTracker {
65

66
    protected EnumWrapper<FolderReferenceTypeField> type;
67

68
    protected final String id;
69

70
    public Builder(String id) {
UNCOV
71
      super();
×
72
      this.id = id;
×
73
      this.type = new EnumWrapper<FolderReferenceTypeField>(FolderReferenceTypeField.FOLDER);
×
UNCOV
74
    }
×
75

76
    public Builder type(FolderReferenceTypeField type) {
77
      this.type = new EnumWrapper<FolderReferenceTypeField>(type);
×
78
      return this;
×
79
    }
80

81
    public Builder type(EnumWrapper<FolderReferenceTypeField> type) {
82
      this.type = type;
×
UNCOV
83
      return this;
×
84
    }
85

86
    public FolderReference build() {
UNCOV
87
      return new FolderReference(this);
×
88
    }
89
  }
90
}
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