• 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

10.71
/src/main/java/com/box/sdkgen/schemas/uploadpart/UploadPart.java
1
package com.box.sdkgen.schemas.uploadpart;
2

3
import com.box.sdkgen.schemas.uploadpartmini.UploadPartMini;
4
import com.fasterxml.jackson.annotation.JsonFilter;
5
import java.util.Objects;
6

7
@JsonFilter("nullablePropertyFilter")
8
public class UploadPart extends UploadPartMini {
9

10
  protected String sha1;
11

12
  public UploadPart() {
13
    super();
1✔
14
  }
1✔
15

16
  protected UploadPart(Builder builder) {
17
    super(builder);
×
UNCOV
18
    this.sha1 = builder.sha1;
×
UNCOV
19
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
20
  }
×
21

22
  public String getSha1() {
23
    return sha1;
1✔
24
  }
25

26
  @Override
27
  public boolean equals(Object o) {
28
    if (this == o) {
×
29
      return true;
×
30
    }
31
    if (o == null || getClass() != o.getClass()) {
×
32
      return false;
×
33
    }
34
    UploadPart casted = (UploadPart) o;
×
35
    return Objects.equals(partId, casted.partId)
×
UNCOV
36
        && Objects.equals(offset, casted.offset)
×
UNCOV
37
        && Objects.equals(size, casted.size)
×
UNCOV
38
        && Objects.equals(sha1, casted.sha1);
×
39
  }
40

41
  @Override
42
  public int hashCode() {
UNCOV
43
    return Objects.hash(partId, offset, size, sha1);
×
44
  }
45

46
  @Override
47
  public String toString() {
UNCOV
48
    return "UploadPart{"
×
49
        + "partId='"
50
        + partId
51
        + '\''
52
        + ", "
53
        + "offset='"
54
        + offset
55
        + '\''
56
        + ", "
57
        + "size='"
58
        + size
59
        + '\''
60
        + ", "
61
        + "sha1='"
62
        + sha1
63
        + '\''
64
        + "}";
65
  }
66

UNCOV
67
  public static class Builder extends UploadPartMini.Builder {
×
68

69
    protected String sha1;
70

71
    public Builder sha1(String sha1) {
UNCOV
72
      this.sha1 = sha1;
×
UNCOV
73
      return this;
×
74
    }
75

76
    @Override
77
    public Builder partId(String partId) {
UNCOV
78
      this.partId = partId;
×
UNCOV
79
      return this;
×
80
    }
81

82
    @Override
83
    public Builder offset(Long offset) {
UNCOV
84
      this.offset = offset;
×
UNCOV
85
      return this;
×
86
    }
87

88
    @Override
89
    public Builder size(Long size) {
UNCOV
90
      this.size = size;
×
UNCOV
91
      return this;
×
92
    }
93

94
    public UploadPart build() {
UNCOV
95
      return new UploadPart(this);
×
96
    }
97
  }
98
}
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