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

box / box-java-sdk-gen / #294

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

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/box/sdkgen/schemas/fileconflict/FileConflict.java
1
package com.box.sdkgen.schemas.fileconflict;
2

3
import com.box.sdkgen.schemas.filebase.FileBaseTypeField;
4
import com.box.sdkgen.schemas.filemini.FileMini;
5
import com.box.sdkgen.schemas.fileversionmini.FileVersionMini;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class FileConflict extends FileMini {
13

14
  public FileConflict(@JsonProperty("id") String id) {
UNCOV
15
    super(id);
×
UNCOV
16
  }
×
17

18
  protected FileConflict(Builder builder) {
UNCOV
19
    super(builder);
×
UNCOV
20
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
21
  }
×
22

23
  @Override
24
  public boolean equals(Object o) {
25
    if (this == o) {
×
26
      return true;
×
27
    }
28
    if (o == null || getClass() != o.getClass()) {
×
29
      return false;
×
30
    }
31
    FileConflict casted = (FileConflict) o;
×
32
    return Objects.equals(id, casted.id)
×
33
        && Objects.equals(etag, casted.etag)
×
34
        && Objects.equals(type, casted.type)
×
35
        && Objects.equals(sequenceId, casted.sequenceId)
×
UNCOV
36
        && Objects.equals(name, casted.name)
×
UNCOV
37
        && Objects.equals(sha1, casted.sha1)
×
UNCOV
38
        && Objects.equals(fileVersion, casted.fileVersion);
×
39
  }
40

41
  @Override
42
  public int hashCode() {
UNCOV
43
    return Objects.hash(id, etag, type, sequenceId, name, sha1, fileVersion);
×
44
  }
45

46
  @Override
47
  public String toString() {
UNCOV
48
    return "FileConflict{"
×
49
        + "id='"
50
        + id
51
        + '\''
52
        + ", "
53
        + "etag='"
54
        + etag
55
        + '\''
56
        + ", "
57
        + "type='"
58
        + type
59
        + '\''
60
        + ", "
61
        + "sequenceId='"
62
        + sequenceId
63
        + '\''
64
        + ", "
65
        + "name='"
66
        + name
67
        + '\''
68
        + ", "
69
        + "sha1='"
70
        + sha1
71
        + '\''
72
        + ", "
73
        + "fileVersion='"
74
        + fileVersion
75
        + '\''
76
        + "}";
77
  }
78

79
  public static class Builder extends FileMini.Builder {
80

81
    public Builder(String id) {
UNCOV
82
      super(id);
×
UNCOV
83
    }
×
84

85
    @Override
86
    public Builder etag(String etag) {
UNCOV
87
      this.etag = etag;
×
UNCOV
88
      this.markNullableFieldAsSet("etag");
×
UNCOV
89
      return this;
×
90
    }
91

92
    @Override
93
    public Builder type(FileBaseTypeField type) {
UNCOV
94
      this.type = new EnumWrapper<FileBaseTypeField>(type);
×
UNCOV
95
      return this;
×
96
    }
97

98
    @Override
99
    public Builder type(EnumWrapper<FileBaseTypeField> type) {
UNCOV
100
      this.type = type;
×
UNCOV
101
      return this;
×
102
    }
103

104
    @Override
105
    public Builder sequenceId(String sequenceId) {
UNCOV
106
      this.sequenceId = sequenceId;
×
UNCOV
107
      return this;
×
108
    }
109

110
    @Override
111
    public Builder name(String name) {
UNCOV
112
      this.name = name;
×
UNCOV
113
      return this;
×
114
    }
115

116
    @Override
117
    public Builder sha1(String sha1) {
UNCOV
118
      this.sha1 = sha1;
×
UNCOV
119
      return this;
×
120
    }
121

122
    @Override
123
    public Builder fileVersion(FileVersionMini fileVersion) {
UNCOV
124
      this.fileVersion = fileVersion;
×
125
      return this;
×
126
    }
127

128
    public FileConflict build() {
UNCOV
129
      return new FileConflict(this);
×
130
    }
131
  }
132
}
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