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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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.time.OffsetDateTime;
11
import java.util.Objects;
12

13
/**
14
 * Comments are messages created on files. Comments can be made independently or created as
15
 * responses to other comments.
16
 */
17
@JsonFilter("nullablePropertyFilter")
18
public class CommentFull extends Comment {
19

20
  /**
21
   * The string representing the comment text with @mentions included. @mention format is
22
   * @[id:username] where `id` is user's Box ID and `username` is their display name.
23
   */
24
  @JsonProperty("tagged_message")
25
  protected String taggedMessage;
26

27
  public CommentFull() {
28
    super();
1✔
29
  }
1✔
30

31
  protected CommentFull(Builder builder) {
32
    super(builder);
×
33
    this.taggedMessage = builder.taggedMessage;
×
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
35
  }
×
36

37
  public String getTaggedMessage() {
38
    return taggedMessage;
×
39
  }
40

41
  @Override
42
  public boolean equals(Object o) {
43
    if (this == o) {
×
44
      return true;
×
45
    }
46
    if (o == null || getClass() != o.getClass()) {
×
47
      return false;
×
48
    }
49
    CommentFull casted = (CommentFull) o;
×
50
    return Objects.equals(id, casted.id)
×
51
        && Objects.equals(type, casted.type)
×
52
        && Objects.equals(isReplyComment, casted.isReplyComment)
×
53
        && Objects.equals(message, casted.message)
×
54
        && Objects.equals(createdBy, casted.createdBy)
×
55
        && Objects.equals(createdAt, casted.createdAt)
×
56
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
57
        && Objects.equals(item, casted.item)
×
58
        && Objects.equals(taggedMessage, casted.taggedMessage);
×
59
  }
60

61
  @Override
62
  public int hashCode() {
63
    return Objects.hash(
×
64
        id, type, isReplyComment, message, createdBy, createdAt, modifiedAt, item, taggedMessage);
65
  }
66

67
  @Override
68
  public String toString() {
69
    return "CommentFull{"
×
70
        + "id='"
71
        + id
72
        + '\''
73
        + ", "
74
        + "type='"
75
        + type
76
        + '\''
77
        + ", "
78
        + "isReplyComment='"
79
        + isReplyComment
80
        + '\''
81
        + ", "
82
        + "message='"
83
        + message
84
        + '\''
85
        + ", "
86
        + "createdBy='"
87
        + createdBy
88
        + '\''
89
        + ", "
90
        + "createdAt='"
91
        + createdAt
92
        + '\''
93
        + ", "
94
        + "modifiedAt='"
95
        + modifiedAt
96
        + '\''
97
        + ", "
98
        + "item='"
99
        + item
100
        + '\''
101
        + ", "
102
        + "taggedMessage='"
103
        + taggedMessage
104
        + '\''
105
        + "}";
106
  }
107

108
  public static class Builder extends Comment.Builder {
×
109

110
    protected String taggedMessage;
111

112
    public Builder taggedMessage(String taggedMessage) {
113
      this.taggedMessage = taggedMessage;
×
114
      return this;
×
115
    }
116

117
    @Override
118
    public Builder id(String id) {
119
      this.id = id;
×
120
      return this;
×
121
    }
122

123
    @Override
124
    public Builder type(CommentBaseTypeField type) {
125
      this.type = new EnumWrapper<CommentBaseTypeField>(type);
×
126
      return this;
×
127
    }
128

129
    @Override
130
    public Builder type(EnumWrapper<CommentBaseTypeField> type) {
131
      this.type = type;
×
132
      return this;
×
133
    }
134

135
    @Override
136
    public Builder isReplyComment(Boolean isReplyComment) {
137
      this.isReplyComment = isReplyComment;
×
138
      return this;
×
139
    }
140

141
    @Override
142
    public Builder message(String message) {
143
      this.message = message;
×
144
      return this;
×
145
    }
146

147
    @Override
148
    public Builder createdBy(UserMini createdBy) {
149
      this.createdBy = createdBy;
×
150
      return this;
×
151
    }
152

153
    @Override
154
    public Builder createdAt(OffsetDateTime createdAt) {
155
      this.createdAt = createdAt;
×
156
      return this;
×
157
    }
158

159
    @Override
160
    public Builder modifiedAt(OffsetDateTime modifiedAt) {
161
      this.modifiedAt = modifiedAt;
×
162
      return this;
×
163
    }
164

165
    @Override
166
    public Builder item(CommentItemField item) {
167
      this.item = item;
×
168
      return this;
×
169
    }
170

171
    public CommentFull build() {
172
      return new CommentFull(this);
×
173
    }
174
  }
175
}
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