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

box / box-java-sdk-gen / #293

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

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

50.0
/src/main/java/com/box/sdkgen/schemas/filerequestcopyrequest/FileRequestCopyRequestFolderField.java
1
package com.box.sdkgen.schemas.filerequestcopyrequest;
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 FileRequestCopyRequestFolderField extends SerializableObject {
14

15
  @JsonDeserialize(
16
      using =
17
          FileRequestCopyRequestFolderTypeField.FileRequestCopyRequestFolderTypeFieldDeserializer
18
              .class)
19
  @JsonSerialize(
20
      using =
21
          FileRequestCopyRequestFolderTypeField.FileRequestCopyRequestFolderTypeFieldSerializer
22
              .class)
23
  protected EnumWrapper<FileRequestCopyRequestFolderTypeField> type;
24

25
  protected final String id;
26

27
  public FileRequestCopyRequestFolderField(@JsonProperty("id") String id) {
UNCOV
28
    super();
×
UNCOV
29
    this.id = id;
×
UNCOV
30
  }
×
31

32
  protected FileRequestCopyRequestFolderField(Builder builder) {
33
    super();
1✔
34
    this.type = builder.type;
1✔
35
    this.id = builder.id;
1✔
36
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
37
  }
1✔
38

39
  public EnumWrapper<FileRequestCopyRequestFolderTypeField> getType() {
40
    return type;
1✔
41
  }
42

43
  public String getId() {
44
    return id;
1✔
45
  }
46

47
  @Override
48
  public boolean equals(Object o) {
49
    if (this == o) {
×
UNCOV
50
      return true;
×
51
    }
52
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
53
      return false;
×
54
    }
UNCOV
55
    FileRequestCopyRequestFolderField casted = (FileRequestCopyRequestFolderField) o;
×
UNCOV
56
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
57
  }
58

59
  @Override
60
  public int hashCode() {
UNCOV
61
    return Objects.hash(type, id);
×
62
  }
63

64
  @Override
65
  public String toString() {
UNCOV
66
    return "FileRequestCopyRequestFolderField{"
×
67
        + "type='"
68
        + type
69
        + '\''
70
        + ", "
71
        + "id='"
72
        + id
73
        + '\''
74
        + "}";
75
  }
76

77
  public static class Builder extends NullableFieldTracker {
78

79
    protected EnumWrapper<FileRequestCopyRequestFolderTypeField> type;
80

81
    protected final String id;
82

83
    public Builder(String id) {
84
      super();
1✔
85
      this.id = id;
1✔
86
    }
1✔
87

88
    public Builder type(FileRequestCopyRequestFolderTypeField type) {
89
      this.type = new EnumWrapper<FileRequestCopyRequestFolderTypeField>(type);
1✔
90
      return this;
1✔
91
    }
92

93
    public Builder type(EnumWrapper<FileRequestCopyRequestFolderTypeField> type) {
UNCOV
94
      this.type = type;
×
UNCOV
95
      return this;
×
96
    }
97

98
    public FileRequestCopyRequestFolderField build() {
99
      return new FileRequestCopyRequestFolderField(this);
1✔
100
    }
101
  }
102
}
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