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

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

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.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class AiCitation extends SerializableObject {
13

14
  protected String content;
15

16
  protected String id;
17

18
  @JsonDeserialize(using = AiCitationTypeField.AiCitationTypeFieldDeserializer.class)
19
  @JsonSerialize(using = AiCitationTypeField.AiCitationTypeFieldSerializer.class)
20
  protected EnumWrapper<AiCitationTypeField> type;
21

22
  protected String name;
23

24
  public AiCitation() {
UNCOV
25
    super();
×
26
  }
×
27

28
  protected AiCitation(Builder builder) {
29
    super();
×
30
    this.content = builder.content;
×
31
    this.id = builder.id;
×
UNCOV
32
    this.type = builder.type;
×
UNCOV
33
    this.name = builder.name;
×
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
35
  }
×
36

37
  public String getContent() {
38
    return content;
×
39
  }
40

41
  public String getId() {
42
    return id;
×
43
  }
44

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

49
  public String getName() {
UNCOV
50
    return name;
×
51
  }
52

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

68
  @Override
69
  public int hashCode() {
UNCOV
70
    return Objects.hash(content, id, type, name);
×
71
  }
72

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

UNCOV
94
  public static class Builder extends NullableFieldTracker {
×
95

96
    protected String content;
97

98
    protected String id;
99

100
    protected EnumWrapper<AiCitationTypeField> type;
101

102
    protected String name;
103

104
    public Builder content(String content) {
UNCOV
105
      this.content = content;
×
106
      return this;
×
107
    }
108

109
    public Builder id(String id) {
UNCOV
110
      this.id = id;
×
111
      return this;
×
112
    }
113

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

119
    public Builder type(EnumWrapper<AiCitationTypeField> type) {
UNCOV
120
      this.type = type;
×
121
      return this;
×
122
    }
123

124
    public Builder name(String name) {
UNCOV
125
      this.name = name;
×
126
      return this;
×
127
    }
128

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