• 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

10.26
/src/main/java/com/box/sdkgen/schemas/comments/Comments.java
1
package com.box.sdkgen.schemas.comments;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.commentfull.CommentFull;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.List;
9
import java.util.Objects;
10

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

14
  @JsonProperty("total_count")
15
  protected Long totalCount;
16

17
  protected Long limit;
18

19
  protected Long offset;
20

21
  protected List<CommentsOrderField> order;
22

23
  protected List<CommentFull> entries;
24

25
  public Comments() {
26
    super();
1✔
27
  }
1✔
28

29
  protected Comments(Builder builder) {
30
    super();
×
31
    this.totalCount = builder.totalCount;
×
32
    this.limit = builder.limit;
×
33
    this.offset = builder.offset;
×
UNCOV
34
    this.order = builder.order;
×
UNCOV
35
    this.entries = builder.entries;
×
UNCOV
36
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
37
  }
×
38

39
  public Long getTotalCount() {
40
    return totalCount;
1✔
41
  }
42

43
  public Long getLimit() {
44
    return limit;
×
45
  }
46

47
  public Long getOffset() {
48
    return offset;
×
49
  }
50

51
  public List<CommentsOrderField> getOrder() {
UNCOV
52
    return order;
×
53
  }
54

55
  public List<CommentFull> getEntries() {
56
    return entries;
1✔
57
  }
58

59
  @Override
60
  public boolean equals(Object o) {
61
    if (this == o) {
×
UNCOV
62
      return true;
×
63
    }
64
    if (o == null || getClass() != o.getClass()) {
×
65
      return false;
×
66
    }
67
    Comments casted = (Comments) o;
×
68
    return Objects.equals(totalCount, casted.totalCount)
×
UNCOV
69
        && Objects.equals(limit, casted.limit)
×
UNCOV
70
        && Objects.equals(offset, casted.offset)
×
UNCOV
71
        && Objects.equals(order, casted.order)
×
UNCOV
72
        && Objects.equals(entries, casted.entries);
×
73
  }
74

75
  @Override
76
  public int hashCode() {
UNCOV
77
    return Objects.hash(totalCount, limit, offset, order, entries);
×
78
  }
79

80
  @Override
81
  public String toString() {
UNCOV
82
    return "Comments{"
×
83
        + "totalCount='"
84
        + totalCount
85
        + '\''
86
        + ", "
87
        + "limit='"
88
        + limit
89
        + '\''
90
        + ", "
91
        + "offset='"
92
        + offset
93
        + '\''
94
        + ", "
95
        + "order='"
96
        + order
97
        + '\''
98
        + ", "
99
        + "entries='"
100
        + entries
101
        + '\''
102
        + "}";
103
  }
104

UNCOV
105
  public static class Builder extends NullableFieldTracker {
×
106

107
    protected Long totalCount;
108

109
    protected Long limit;
110

111
    protected Long offset;
112

113
    protected List<CommentsOrderField> order;
114

115
    protected List<CommentFull> entries;
116

117
    public Builder totalCount(Long totalCount) {
UNCOV
118
      this.totalCount = totalCount;
×
119
      return this;
×
120
    }
121

122
    public Builder limit(Long limit) {
UNCOV
123
      this.limit = limit;
×
124
      return this;
×
125
    }
126

127
    public Builder offset(Long offset) {
UNCOV
128
      this.offset = offset;
×
129
      return this;
×
130
    }
131

132
    public Builder order(List<CommentsOrderField> order) {
UNCOV
133
      this.order = order;
×
134
      return this;
×
135
    }
136

137
    public Builder entries(List<CommentFull> entries) {
UNCOV
138
      this.entries = entries;
×
139
      return this;
×
140
    }
141

142
    public Comments build() {
UNCOV
143
      return new Comments(this);
×
144
    }
145
  }
146
}
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