• 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

21.43
/src/main/java/com/box/sdkgen/schemas/userbase/UserBase.java
1
package com.box.sdkgen.schemas.userbase;
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.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class UserBase extends SerializableObject {
14

15
  protected final String id;
16

17
  @JsonDeserialize(using = UserBaseTypeField.UserBaseTypeFieldDeserializer.class)
18
  @JsonSerialize(using = UserBaseTypeField.UserBaseTypeFieldSerializer.class)
19
  protected EnumWrapper<UserBaseTypeField> type;
20

21
  public UserBase(@JsonProperty("id") String id) {
22
    super();
1✔
23
    this.id = id;
1✔
24
    this.type = new EnumWrapper<UserBaseTypeField>(UserBaseTypeField.USER);
1✔
25
  }
1✔
26

27
  protected UserBase(Builder builder) {
28
    super();
×
UNCOV
29
    this.id = builder.id;
×
UNCOV
30
    this.type = builder.type;
×
UNCOV
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
32
  }
×
33

34
  public String getId() {
35
    return id;
1✔
36
  }
37

38
  public EnumWrapper<UserBaseTypeField> getType() {
39
    return type;
1✔
40
  }
41

42
  @Override
43
  public boolean equals(Object o) {
44
    if (this == o) {
×
UNCOV
45
      return true;
×
46
    }
47
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
48
      return false;
×
49
    }
UNCOV
50
    UserBase casted = (UserBase) o;
×
UNCOV
51
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
52
  }
53

54
  @Override
55
  public int hashCode() {
UNCOV
56
    return Objects.hash(id, type);
×
57
  }
58

59
  @Override
60
  public String toString() {
UNCOV
61
    return "UserBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
62
  }
63

64
  public static class Builder extends NullableFieldTracker {
65

66
    protected final String id;
67

68
    protected EnumWrapper<UserBaseTypeField> type;
69

70
    public Builder(String id) {
UNCOV
71
      super();
×
72
      this.id = id;
×
73
      this.type = new EnumWrapper<UserBaseTypeField>(UserBaseTypeField.USER);
×
UNCOV
74
    }
×
75

76
    public Builder type(UserBaseTypeField type) {
77
      this.type = new EnumWrapper<UserBaseTypeField>(type);
×
78
      return this;
×
79
    }
80

81
    public Builder type(EnumWrapper<UserBaseTypeField> type) {
82
      this.type = type;
×
UNCOV
83
      return this;
×
84
    }
85

86
    public UserBase build() {
UNCOV
87
      return new UserBase(this);
×
88
    }
89
  }
90
}
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