• 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/aicitation/AiCitation.java
1
package com.box.sdkgen.schemas.aicitation;
2

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

9
public class AiCitation extends SerializableObject {
10

11
  protected String content;
12

13
  protected String id;
14

15
  @JsonDeserialize(using = AiCitationTypeField.AiCitationTypeFieldDeserializer.class)
16
  @JsonSerialize(using = AiCitationTypeField.AiCitationTypeFieldSerializer.class)
17
  protected EnumWrapper<AiCitationTypeField> type;
18

19
  protected String name;
20

21
  public AiCitation() {
22
    super();
×
23
  }
×
24

25
  protected AiCitation(Builder builder) {
26
    super();
×
27
    this.content = builder.content;
×
28
    this.id = builder.id;
×
29
    this.type = builder.type;
×
30
    this.name = builder.name;
×
31
  }
×
32

33
  public String getContent() {
34
    return content;
×
35
  }
36

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

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

45
  public String getName() {
46
    return name;
×
47
  }
48

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

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(content, id, type, name);
×
67
  }
68

69
  @Override
70
  public String toString() {
71
    return "AiCitation{"
×
72
        + "content='"
73
        + content
74
        + '\''
75
        + ", "
76
        + "id='"
77
        + id
78
        + '\''
79
        + ", "
80
        + "type='"
81
        + type
82
        + '\''
83
        + ", "
84
        + "name='"
85
        + name
86
        + '\''
87
        + "}";
88
  }
89

NEW
90
  public static class Builder {
×
91

92
    protected String content;
93

94
    protected String id;
95

96
    protected EnumWrapper<AiCitationTypeField> type;
97

98
    protected String name;
99

100
    public Builder content(String content) {
101
      this.content = content;
×
102
      return this;
×
103
    }
104

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

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

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

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

125
    public AiCitation build() {
126
      return new AiCitation(this);
×
127
    }
128
  }
129
}
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