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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

17.24
/src/main/java/com/box/sdkgen/schemas/uploadpartmini/UploadPartMini.java
1
package com.box.sdkgen.schemas.uploadpartmini;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
/** The basic representation of an upload session chunk. */
10
@JsonFilter("nullablePropertyFilter")
11
public class UploadPartMini extends SerializableObject {
12

13
  /** The unique ID of the chunk. */
14
  @JsonProperty("part_id")
15
  protected String partId;
16

17
  /**
18
   * The offset of the chunk within the file in bytes. The lower bound of the position of the chunk
19
   * within the file.
20
   */
21
  protected Long offset;
22

23
  /** The size of the chunk in bytes. */
24
  protected Long size;
25

26
  public UploadPartMini() {
27
    super();
1✔
28
  }
1✔
29

30
  protected UploadPartMini(Builder builder) {
31
    super();
×
32
    this.partId = builder.partId;
×
33
    this.offset = builder.offset;
×
34
    this.size = builder.size;
×
35
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
36
  }
×
37

38
  public String getPartId() {
39
    return partId;
1✔
40
  }
41

42
  public Long getOffset() {
43
    return offset;
1✔
44
  }
45

46
  public Long getSize() {
47
    return size;
1✔
48
  }
49

50
  @Override
51
  public boolean equals(Object o) {
52
    if (this == o) {
×
53
      return true;
×
54
    }
55
    if (o == null || getClass() != o.getClass()) {
×
56
      return false;
×
57
    }
58
    UploadPartMini casted = (UploadPartMini) o;
×
59
    return Objects.equals(partId, casted.partId)
×
60
        && Objects.equals(offset, casted.offset)
×
61
        && Objects.equals(size, casted.size);
×
62
  }
63

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(partId, offset, size);
×
67
  }
68

69
  @Override
70
  public String toString() {
71
    return "UploadPartMini{"
×
72
        + "partId='"
73
        + partId
74
        + '\''
75
        + ", "
76
        + "offset='"
77
        + offset
78
        + '\''
79
        + ", "
80
        + "size='"
81
        + size
82
        + '\''
83
        + "}";
84
  }
85

86
  public static class Builder extends NullableFieldTracker {
×
87

88
    protected String partId;
89

90
    protected Long offset;
91

92
    protected Long size;
93

94
    public Builder partId(String partId) {
95
      this.partId = partId;
×
96
      return this;
×
97
    }
98

99
    public Builder offset(Long offset) {
100
      this.offset = offset;
×
101
      return this;
×
102
    }
103

104
    public Builder size(Long size) {
105
      this.size = size;
×
106
      return this;
×
107
    }
108

109
    public UploadPartMini build() {
110
      return new UploadPartMini(this);
×
111
    }
112
  }
113
}
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