• 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

5.13
/src/main/java/com/box/sdkgen/schemas/group/Group.java
1
package com.box.sdkgen.schemas.group;
2

3
import com.box.sdkgen.internal.utils.DateTimeUtils;
4
import com.box.sdkgen.schemas.groupbase.GroupBaseTypeField;
5
import com.box.sdkgen.schemas.groupmini.GroupMini;
6
import com.box.sdkgen.schemas.groupmini.GroupMiniGroupTypeField;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.Date;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class Group extends GroupMini {
17

18
  @JsonProperty("created_at")
19
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
20
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
21
  protected Date createdAt;
22

23
  @JsonProperty("modified_at")
24
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
25
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
26
  protected Date modifiedAt;
27

28
  public Group(@JsonProperty("id") String id) {
29
    super(id);
1✔
30
  }
1✔
31

32
  protected Group(Builder builder) {
33
    super(builder);
×
34
    this.createdAt = builder.createdAt;
×
UNCOV
35
    this.modifiedAt = builder.modifiedAt;
×
UNCOV
36
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
37
  }
×
38

39
  public Date getCreatedAt() {
UNCOV
40
    return createdAt;
×
41
  }
42

43
  public Date getModifiedAt() {
UNCOV
44
    return modifiedAt;
×
45
  }
46

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

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

69
  @Override
70
  public String toString() {
UNCOV
71
    return "Group{"
×
72
        + "id='"
73
        + id
74
        + '\''
75
        + ", "
76
        + "type='"
77
        + type
78
        + '\''
79
        + ", "
80
        + "name='"
81
        + name
82
        + '\''
83
        + ", "
84
        + "groupType='"
85
        + groupType
86
        + '\''
87
        + ", "
88
        + "createdAt='"
89
        + createdAt
90
        + '\''
91
        + ", "
92
        + "modifiedAt='"
93
        + modifiedAt
94
        + '\''
95
        + "}";
96
  }
97

98
  public static class Builder extends GroupMini.Builder {
99

100
    protected Date createdAt;
101

102
    protected Date modifiedAt;
103

104
    public Builder(String id) {
UNCOV
105
      super(id);
×
106
    }
×
107

108
    public Builder createdAt(Date createdAt) {
UNCOV
109
      this.createdAt = createdAt;
×
UNCOV
110
      return this;
×
111
    }
112

113
    public Builder modifiedAt(Date modifiedAt) {
UNCOV
114
      this.modifiedAt = modifiedAt;
×
UNCOV
115
      return this;
×
116
    }
117

118
    @Override
119
    public Builder type(GroupBaseTypeField type) {
UNCOV
120
      this.type = new EnumWrapper<GroupBaseTypeField>(type);
×
UNCOV
121
      return this;
×
122
    }
123

124
    @Override
125
    public Builder type(EnumWrapper<GroupBaseTypeField> type) {
UNCOV
126
      this.type = type;
×
UNCOV
127
      return this;
×
128
    }
129

130
    @Override
131
    public Builder name(String name) {
UNCOV
132
      this.name = name;
×
UNCOV
133
      return this;
×
134
    }
135

136
    @Override
137
    public Builder groupType(GroupMiniGroupTypeField groupType) {
UNCOV
138
      this.groupType = new EnumWrapper<GroupMiniGroupTypeField>(groupType);
×
UNCOV
139
      return this;
×
140
    }
141

142
    @Override
143
    public Builder groupType(EnumWrapper<GroupMiniGroupTypeField> groupType) {
UNCOV
144
      this.groupType = groupType;
×
UNCOV
145
      return this;
×
146
    }
147

148
    public Group build() {
UNCOV
149
      return new Group(this);
×
150
    }
151
  }
152
}
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