• 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

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

12
  @JsonDeserialize(
13
      using =
14
          TrashWebLinkPathCollectionEntriesTypeField
15
              .TrashWebLinkPathCollectionEntriesTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using =
18
          TrashWebLinkPathCollectionEntriesTypeField
19
              .TrashWebLinkPathCollectionEntriesTypeFieldSerializer.class)
20
  protected EnumWrapper<TrashWebLinkPathCollectionEntriesTypeField> type;
21

22
  protected String id;
23

24
  @JsonProperty("sequence_id")
25
  protected String sequenceId;
26

27
  protected String etag;
28

29
  protected String name;
30

31
  public TrashWebLinkPathCollectionEntriesField() {
32
    super();
1✔
33
  }
1✔
34

35
  protected TrashWebLinkPathCollectionEntriesField(Builder builder) {
UNCOV
36
    super();
×
37
    this.type = builder.type;
×
38
    this.id = builder.id;
×
39
    this.sequenceId = builder.sequenceId;
×
40
    this.etag = builder.etag;
×
41
    this.name = builder.name;
×
42
  }
×
43

44
  public EnumWrapper<TrashWebLinkPathCollectionEntriesTypeField> getType() {
45
    return type;
×
46
  }
47

48
  public String getId() {
49
    return id;
×
50
  }
51

52
  public String getSequenceId() {
53
    return sequenceId;
×
54
  }
55

56
  public String getEtag() {
57
    return etag;
×
58
  }
59

60
  public String getName() {
61
    return name;
×
62
  }
63

64
  @Override
65
  public boolean equals(Object o) {
66
    if (this == o) {
×
67
      return true;
×
68
    }
69
    if (o == null || getClass() != o.getClass()) {
×
70
      return false;
×
71
    }
72
    TrashWebLinkPathCollectionEntriesField casted = (TrashWebLinkPathCollectionEntriesField) o;
×
73
    return Objects.equals(type, casted.type)
×
74
        && Objects.equals(id, casted.id)
×
75
        && Objects.equals(sequenceId, casted.sequenceId)
×
76
        && Objects.equals(etag, casted.etag)
×
77
        && Objects.equals(name, casted.name);
×
78
  }
79

80
  @Override
81
  public int hashCode() {
82
    return Objects.hash(type, id, sequenceId, etag, name);
×
83
  }
84

85
  @Override
86
  public String toString() {
87
    return "TrashWebLinkPathCollectionEntriesField{"
×
88
        + "type='"
89
        + type
90
        + '\''
91
        + ", "
92
        + "id='"
93
        + id
94
        + '\''
95
        + ", "
96
        + "sequenceId='"
97
        + sequenceId
98
        + '\''
99
        + ", "
100
        + "etag='"
101
        + etag
102
        + '\''
103
        + ", "
104
        + "name='"
105
        + name
106
        + '\''
107
        + "}";
108
  }
109

NEW
110
  public static class Builder {
×
111

112
    protected EnumWrapper<TrashWebLinkPathCollectionEntriesTypeField> type;
113

114
    protected String id;
115

116
    protected String sequenceId;
117

118
    protected String etag;
119

120
    protected String name;
121

122
    public Builder type(TrashWebLinkPathCollectionEntriesTypeField type) {
UNCOV
123
      this.type = new EnumWrapper<TrashWebLinkPathCollectionEntriesTypeField>(type);
×
124
      return this;
×
125
    }
126

127
    public Builder type(EnumWrapper<TrashWebLinkPathCollectionEntriesTypeField> type) {
UNCOV
128
      this.type = type;
×
129
      return this;
×
130
    }
131

132
    public Builder id(String id) {
133
      this.id = id;
×
134
      return this;
×
135
    }
136

137
    public Builder sequenceId(String sequenceId) {
138
      this.sequenceId = sequenceId;
×
139
      return this;
×
140
    }
141

142
    public Builder etag(String etag) {
143
      this.etag = etag;
×
144
      return this;
×
145
    }
146

147
    public Builder name(String name) {
148
      this.name = name;
×
149
      return this;
×
150
    }
151

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