• 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

6.67
/src/main/java/com/box/sdkgen/schemas/filemini/FileMini.java
1
package com.box.sdkgen.schemas.filemini;
2

3
import com.box.sdkgen.schemas.filebase.FileBase;
4
import com.box.sdkgen.schemas.filebase.FileBaseTypeField;
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 FileMini extends FileBase {
13

14
  @JsonProperty("sequence_id")
15
  protected String sequenceId;
16

17
  protected String name;
18

19
  protected String sha1;
20

21
  @JsonProperty("file_version")
22
  protected FileVersionMini fileVersion;
23

24
  public FileMini(@JsonProperty("id") String id) {
25
    super(id);
1✔
26
  }
1✔
27

28
  protected FileMini(Builder builder) {
29
    super(builder);
×
30
    this.sequenceId = builder.sequenceId;
×
31
    this.name = builder.name;
×
32
    this.sha1 = builder.sha1;
×
UNCOV
33
    this.fileVersion = builder.fileVersion;
×
UNCOV
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
35
  }
×
36

37
  public String getSequenceId() {
UNCOV
38
    return sequenceId;
×
39
  }
40

41
  public String getName() {
42
    return name;
1✔
43
  }
44

45
  public String getSha1() {
UNCOV
46
    return sha1;
×
47
  }
48

49
  public FileVersionMini getFileVersion() {
UNCOV
50
    return fileVersion;
×
51
  }
52

53
  @Override
54
  public boolean equals(Object o) {
55
    if (this == o) {
×
56
      return true;
×
57
    }
58
    if (o == null || getClass() != o.getClass()) {
×
59
      return false;
×
60
    }
61
    FileMini casted = (FileMini) o;
×
62
    return Objects.equals(id, casted.id)
×
63
        && Objects.equals(etag, casted.etag)
×
64
        && Objects.equals(type, casted.type)
×
65
        && Objects.equals(sequenceId, casted.sequenceId)
×
UNCOV
66
        && Objects.equals(name, casted.name)
×
UNCOV
67
        && Objects.equals(sha1, casted.sha1)
×
UNCOV
68
        && Objects.equals(fileVersion, casted.fileVersion);
×
69
  }
70

71
  @Override
72
  public int hashCode() {
UNCOV
73
    return Objects.hash(id, etag, type, sequenceId, name, sha1, fileVersion);
×
74
  }
75

76
  @Override
77
  public String toString() {
UNCOV
78
    return "FileMini{"
×
79
        + "id='"
80
        + id
81
        + '\''
82
        + ", "
83
        + "etag='"
84
        + etag
85
        + '\''
86
        + ", "
87
        + "type='"
88
        + type
89
        + '\''
90
        + ", "
91
        + "sequenceId='"
92
        + sequenceId
93
        + '\''
94
        + ", "
95
        + "name='"
96
        + name
97
        + '\''
98
        + ", "
99
        + "sha1='"
100
        + sha1
101
        + '\''
102
        + ", "
103
        + "fileVersion='"
104
        + fileVersion
105
        + '\''
106
        + "}";
107
  }
108

109
  public static class Builder extends FileBase.Builder {
110

111
    protected String sequenceId;
112

113
    protected String name;
114

115
    protected String sha1;
116

117
    protected FileVersionMini fileVersion;
118

119
    public Builder(String id) {
UNCOV
120
      super(id);
×
121
    }
×
122

123
    public Builder sequenceId(String sequenceId) {
UNCOV
124
      this.sequenceId = sequenceId;
×
UNCOV
125
      return this;
×
126
    }
127

128
    public Builder name(String name) {
UNCOV
129
      this.name = name;
×
UNCOV
130
      return this;
×
131
    }
132

133
    public Builder sha1(String sha1) {
UNCOV
134
      this.sha1 = sha1;
×
UNCOV
135
      return this;
×
136
    }
137

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

143
    @Override
144
    public Builder etag(String etag) {
UNCOV
145
      this.etag = etag;
×
UNCOV
146
      this.markNullableFieldAsSet("etag");
×
UNCOV
147
      return this;
×
148
    }
149

150
    @Override
151
    public Builder type(FileBaseTypeField type) {
UNCOV
152
      this.type = new EnumWrapper<FileBaseTypeField>(type);
×
UNCOV
153
      return this;
×
154
    }
155

156
    @Override
157
    public Builder type(EnumWrapper<FileBaseTypeField> type) {
UNCOV
158
      this.type = type;
×
159
      return this;
×
160
    }
161

162
    public FileMini build() {
UNCOV
163
      return new FileMini(this);
×
164
    }
165
  }
166
}
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