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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

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

11820 existing lines in 631 files now uncovered.

16946 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

4.44
/src/main/java/com/box/sdkgen/schemas/commentfull/CommentFull.java
1
package com.box.sdkgen.schemas.commentfull;
2

3
import com.box.sdkgen.schemas.comment.Comment;
4
import com.box.sdkgen.schemas.comment.CommentItemField;
5
import com.box.sdkgen.schemas.commentbase.CommentBaseTypeField;
6
import com.box.sdkgen.schemas.usermini.UserMini;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import java.util.Date;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class CommentFull extends Comment {
15

16
  @JsonProperty("tagged_message")
17
  protected String taggedMessage;
18

19
  public CommentFull() {
20
    super();
1✔
21
  }
1✔
22

23
  protected CommentFull(Builder builder) {
24
    super(builder);
×
UNCOV
25
    this.taggedMessage = builder.taggedMessage;
×
UNCOV
26
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
27
  }
×
28

29
  public String getTaggedMessage() {
UNCOV
30
    return taggedMessage;
×
31
  }
32

33
  @Override
34
  public boolean equals(Object o) {
35
    if (this == o) {
×
36
      return true;
×
37
    }
38
    if (o == null || getClass() != o.getClass()) {
×
39
      return false;
×
40
    }
41
    CommentFull casted = (CommentFull) o;
×
42
    return Objects.equals(id, casted.id)
×
43
        && Objects.equals(type, casted.type)
×
44
        && Objects.equals(isReplyComment, casted.isReplyComment)
×
45
        && Objects.equals(message, casted.message)
×
46
        && Objects.equals(createdBy, casted.createdBy)
×
47
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
48
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
UNCOV
49
        && Objects.equals(item, casted.item)
×
UNCOV
50
        && Objects.equals(taggedMessage, casted.taggedMessage);
×
51
  }
52

53
  @Override
54
  public int hashCode() {
UNCOV
55
    return Objects.hash(
×
56
        id, type, isReplyComment, message, createdBy, createdAt, modifiedAt, item, taggedMessage);
57
  }
58

59
  @Override
60
  public String toString() {
UNCOV
61
    return "CommentFull{"
×
62
        + "id='"
63
        + id
64
        + '\''
65
        + ", "
66
        + "type='"
67
        + type
68
        + '\''
69
        + ", "
70
        + "isReplyComment='"
71
        + isReplyComment
72
        + '\''
73
        + ", "
74
        + "message='"
75
        + message
76
        + '\''
77
        + ", "
78
        + "createdBy='"
79
        + createdBy
80
        + '\''
81
        + ", "
82
        + "createdAt='"
83
        + createdAt
84
        + '\''
85
        + ", "
86
        + "modifiedAt='"
87
        + modifiedAt
88
        + '\''
89
        + ", "
90
        + "item='"
91
        + item
92
        + '\''
93
        + ", "
94
        + "taggedMessage='"
95
        + taggedMessage
96
        + '\''
97
        + "}";
98
  }
99

UNCOV
100
  public static class Builder extends Comment.Builder {
×
101

102
    protected String taggedMessage;
103

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

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

115
    @Override
116
    public Builder type(CommentBaseTypeField type) {
UNCOV
117
      this.type = new EnumWrapper<CommentBaseTypeField>(type);
×
UNCOV
118
      return this;
×
119
    }
120

121
    @Override
122
    public Builder type(EnumWrapper<CommentBaseTypeField> type) {
UNCOV
123
      this.type = type;
×
UNCOV
124
      return this;
×
125
    }
126

127
    @Override
128
    public Builder isReplyComment(Boolean isReplyComment) {
UNCOV
129
      this.isReplyComment = isReplyComment;
×
UNCOV
130
      return this;
×
131
    }
132

133
    @Override
134
    public Builder message(String message) {
UNCOV
135
      this.message = message;
×
UNCOV
136
      return this;
×
137
    }
138

139
    @Override
140
    public Builder createdBy(UserMini createdBy) {
UNCOV
141
      this.createdBy = createdBy;
×
UNCOV
142
      return this;
×
143
    }
144

145
    @Override
146
    public Builder createdAt(Date createdAt) {
UNCOV
147
      this.createdAt = createdAt;
×
UNCOV
148
      return this;
×
149
    }
150

151
    @Override
152
    public Builder modifiedAt(Date modifiedAt) {
UNCOV
153
      this.modifiedAt = modifiedAt;
×
UNCOV
154
      return this;
×
155
    }
156

157
    @Override
158
    public Builder item(CommentItemField item) {
UNCOV
159
      this.item = item;
×
UNCOV
160
      return this;
×
161
    }
162

163
    public CommentFull build() {
UNCOV
164
      return new CommentFull(this);
×
165
    }
166
  }
167
}
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