• 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

0.0
/src/main/java/com/box/sdkgen/schemas/zipdownload/ZipDownloadNameConflictsField.java
1
package com.box.sdkgen.schemas.zipdownload;
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 ZipDownloadNameConflictsField extends SerializableObject {
11

12
  protected String id;
13

14
  @JsonDeserialize(
15
      using = ZipDownloadNameConflictsTypeField.ZipDownloadNameConflictsTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using = ZipDownloadNameConflictsTypeField.ZipDownloadNameConflictsTypeFieldSerializer.class)
18
  protected EnumWrapper<ZipDownloadNameConflictsTypeField> type;
19

20
  @JsonProperty("original_name")
21
  protected String originalName;
22

23
  @JsonProperty("download_name")
24
  protected String downloadName;
25

26
  public ZipDownloadNameConflictsField() {
27
    super();
×
28
  }
×
29

30
  protected ZipDownloadNameConflictsField(Builder builder) {
31
    super();
×
32
    this.id = builder.id;
×
33
    this.type = builder.type;
×
34
    this.originalName = builder.originalName;
×
35
    this.downloadName = builder.downloadName;
×
36
  }
×
37

38
  public String getId() {
39
    return id;
×
40
  }
41

42
  public EnumWrapper<ZipDownloadNameConflictsTypeField> getType() {
43
    return type;
×
44
  }
45

46
  public String getOriginalName() {
47
    return originalName;
×
48
  }
49

50
  public String getDownloadName() {
51
    return downloadName;
×
52
  }
53

54
  @Override
55
  public boolean equals(Object o) {
56
    if (this == o) {
×
57
      return true;
×
58
    }
59
    if (o == null || getClass() != o.getClass()) {
×
60
      return false;
×
61
    }
62
    ZipDownloadNameConflictsField casted = (ZipDownloadNameConflictsField) o;
×
63
    return Objects.equals(id, casted.id)
×
64
        && Objects.equals(type, casted.type)
×
65
        && Objects.equals(originalName, casted.originalName)
×
66
        && Objects.equals(downloadName, casted.downloadName);
×
67
  }
68

69
  @Override
70
  public int hashCode() {
71
    return Objects.hash(id, type, originalName, downloadName);
×
72
  }
73

74
  @Override
75
  public String toString() {
76
    return "ZipDownloadNameConflictsField{"
×
77
        + "id='"
78
        + id
79
        + '\''
80
        + ", "
81
        + "type='"
82
        + type
83
        + '\''
84
        + ", "
85
        + "originalName='"
86
        + originalName
87
        + '\''
88
        + ", "
89
        + "downloadName='"
90
        + downloadName
91
        + '\''
92
        + "}";
93
  }
94

NEW
95
  public static class Builder {
×
96

97
    protected String id;
98

99
    protected EnumWrapper<ZipDownloadNameConflictsTypeField> type;
100

101
    protected String originalName;
102

103
    protected String downloadName;
104

105
    public Builder id(String id) {
106
      this.id = id;
×
107
      return this;
×
108
    }
109

110
    public Builder type(ZipDownloadNameConflictsTypeField type) {
111
      this.type = new EnumWrapper<ZipDownloadNameConflictsTypeField>(type);
×
112
      return this;
×
113
    }
114

115
    public Builder type(EnumWrapper<ZipDownloadNameConflictsTypeField> type) {
UNCOV
116
      this.type = type;
×
117
      return this;
×
118
    }
119

120
    public Builder originalName(String originalName) {
121
      this.originalName = originalName;
×
122
      return this;
×
123
    }
124

125
    public Builder downloadName(String downloadName) {
126
      this.downloadName = downloadName;
×
127
      return this;
×
128
    }
129

130
    public ZipDownloadNameConflictsField build() {
131
      return new ZipDownloadNameConflictsField(this);
×
132
    }
133
  }
134
}
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