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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

17.5
/src/main/java/com/box/sdkgen/schemas/zipdownloadstatus/ZipDownloadStatus.java
1
package com.box.sdkgen.schemas.zipdownloadstatus;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.Objects;
9

10
public class ZipDownloadStatus extends SerializableObject {
11

12
  @JsonProperty("total_file_count")
13
  protected Long totalFileCount;
14

15
  @JsonProperty("downloaded_file_count")
16
  protected Long downloadedFileCount;
17

18
  @JsonProperty("skipped_file_count")
19
  protected Long skippedFileCount;
20

21
  @JsonProperty("skipped_folder_count")
22
  protected Long skippedFolderCount;
23

24
  @JsonDeserialize(
25
      using = ZipDownloadStatusStateField.ZipDownloadStatusStateFieldDeserializer.class)
26
  @JsonSerialize(using = ZipDownloadStatusStateField.ZipDownloadStatusStateFieldSerializer.class)
27
  protected EnumWrapper<ZipDownloadStatusStateField> state;
28

29
  public ZipDownloadStatus() {
30
    super();
1✔
31
  }
1✔
32

33
  protected ZipDownloadStatus(Builder builder) {
34
    super();
×
35
    this.totalFileCount = builder.totalFileCount;
×
36
    this.downloadedFileCount = builder.downloadedFileCount;
×
37
    this.skippedFileCount = builder.skippedFileCount;
×
38
    this.skippedFolderCount = builder.skippedFolderCount;
×
39
    this.state = builder.state;
×
40
  }
×
41

42
  public Long getTotalFileCount() {
43
    return totalFileCount;
1✔
44
  }
45

46
  public Long getDownloadedFileCount() {
47
    return downloadedFileCount;
1✔
48
  }
49

50
  public Long getSkippedFileCount() {
51
    return skippedFileCount;
1✔
52
  }
53

54
  public Long getSkippedFolderCount() {
55
    return skippedFolderCount;
1✔
56
  }
57

58
  public EnumWrapper<ZipDownloadStatusStateField> getState() {
59
    return state;
1✔
60
  }
61

62
  @Override
63
  public boolean equals(Object o) {
64
    if (this == o) {
×
65
      return true;
×
66
    }
67
    if (o == null || getClass() != o.getClass()) {
×
68
      return false;
×
69
    }
70
    ZipDownloadStatus casted = (ZipDownloadStatus) o;
×
71
    return Objects.equals(totalFileCount, casted.totalFileCount)
×
72
        && Objects.equals(downloadedFileCount, casted.downloadedFileCount)
×
73
        && Objects.equals(skippedFileCount, casted.skippedFileCount)
×
74
        && Objects.equals(skippedFolderCount, casted.skippedFolderCount)
×
75
        && Objects.equals(state, casted.state);
×
76
  }
77

78
  @Override
79
  public int hashCode() {
80
    return Objects.hash(
×
81
        totalFileCount, downloadedFileCount, skippedFileCount, skippedFolderCount, state);
82
  }
83

84
  @Override
85
  public String toString() {
86
    return "ZipDownloadStatus{"
×
87
        + "totalFileCount='"
88
        + totalFileCount
89
        + '\''
90
        + ", "
91
        + "downloadedFileCount='"
92
        + downloadedFileCount
93
        + '\''
94
        + ", "
95
        + "skippedFileCount='"
96
        + skippedFileCount
97
        + '\''
98
        + ", "
99
        + "skippedFolderCount='"
100
        + skippedFolderCount
101
        + '\''
102
        + ", "
103
        + "state='"
104
        + state
105
        + '\''
106
        + "}";
107
  }
108

NEW
109
  public static class Builder {
×
110

111
    protected Long totalFileCount;
112

113
    protected Long downloadedFileCount;
114

115
    protected Long skippedFileCount;
116

117
    protected Long skippedFolderCount;
118

119
    protected EnumWrapper<ZipDownloadStatusStateField> state;
120

121
    public Builder totalFileCount(Long totalFileCount) {
122
      this.totalFileCount = totalFileCount;
×
123
      return this;
×
124
    }
125

126
    public Builder downloadedFileCount(Long downloadedFileCount) {
127
      this.downloadedFileCount = downloadedFileCount;
×
128
      return this;
×
129
    }
130

131
    public Builder skippedFileCount(Long skippedFileCount) {
132
      this.skippedFileCount = skippedFileCount;
×
133
      return this;
×
134
    }
135

136
    public Builder skippedFolderCount(Long skippedFolderCount) {
137
      this.skippedFolderCount = skippedFolderCount;
×
138
      return this;
×
139
    }
140

141
    public Builder state(ZipDownloadStatusStateField state) {
142
      this.state = new EnumWrapper<ZipDownloadStatusStateField>(state);
×
143
      return this;
×
144
    }
145

146
    public Builder state(EnumWrapper<ZipDownloadStatusStateField> state) {
147
      this.state = state;
×
148
      return this;
×
149
    }
150

151
    public ZipDownloadStatus build() {
152
      return new ZipDownloadStatus(this);
×
153
    }
154
  }
155
}
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