• 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

20.59
/src/main/java/com/box/sdkgen/schemas/appitem/AppItem.java
1
package com.box.sdkgen.schemas.appitem;
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 AppItem extends SerializableObject {
14

15
  protected final String id;
16

17
  @JsonDeserialize(using = AppItemTypeField.AppItemTypeFieldDeserializer.class)
18
  @JsonSerialize(using = AppItemTypeField.AppItemTypeFieldSerializer.class)
19
  protected EnumWrapper<AppItemTypeField> type;
20

21
  @JsonProperty("application_type")
22
  protected final String applicationType;
23

24
  public AppItem(
25
      @JsonProperty("id") String id, @JsonProperty("application_type") String applicationType) {
26
    super();
1✔
27
    this.id = id;
1✔
28
    this.applicationType = applicationType;
1✔
29
    this.type = new EnumWrapper<AppItemTypeField>(AppItemTypeField.APP_ITEM);
1✔
30
  }
1✔
31

32
  protected AppItem(Builder builder) {
33
    super();
×
34
    this.id = builder.id;
×
UNCOV
35
    this.type = builder.type;
×
UNCOV
36
    this.applicationType = builder.applicationType;
×
37
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
38
  }
×
39

40
  public String getId() {
UNCOV
41
    return id;
×
42
  }
43

44
  public EnumWrapper<AppItemTypeField> getType() {
45
    return type;
1✔
46
  }
47

48
  public String getApplicationType() {
49
    return applicationType;
1✔
50
  }
51

52
  @Override
53
  public boolean equals(Object o) {
54
    if (this == o) {
×
UNCOV
55
      return true;
×
56
    }
57
    if (o == null || getClass() != o.getClass()) {
×
58
      return false;
×
59
    }
UNCOV
60
    AppItem casted = (AppItem) o;
×
UNCOV
61
    return Objects.equals(id, casted.id)
×
UNCOV
62
        && Objects.equals(type, casted.type)
×
UNCOV
63
        && Objects.equals(applicationType, casted.applicationType);
×
64
  }
65

66
  @Override
67
  public int hashCode() {
UNCOV
68
    return Objects.hash(id, type, applicationType);
×
69
  }
70

71
  @Override
72
  public String toString() {
UNCOV
73
    return "AppItem{"
×
74
        + "id='"
75
        + id
76
        + '\''
77
        + ", "
78
        + "type='"
79
        + type
80
        + '\''
81
        + ", "
82
        + "applicationType='"
83
        + applicationType
84
        + '\''
85
        + "}";
86
  }
87

88
  public static class Builder extends NullableFieldTracker {
89

90
    protected final String id;
91

92
    protected EnumWrapper<AppItemTypeField> type;
93

94
    protected final String applicationType;
95

96
    public Builder(String id, String applicationType) {
UNCOV
97
      super();
×
UNCOV
98
      this.id = id;
×
99
      this.applicationType = applicationType;
×
100
      this.type = new EnumWrapper<AppItemTypeField>(AppItemTypeField.APP_ITEM);
×
UNCOV
101
    }
×
102

103
    public Builder type(AppItemTypeField type) {
104
      this.type = new EnumWrapper<AppItemTypeField>(type);
×
105
      return this;
×
106
    }
107

108
    public Builder type(EnumWrapper<AppItemTypeField> type) {
109
      this.type = type;
×
UNCOV
110
      return this;
×
111
    }
112

113
    public AppItem build() {
UNCOV
114
      return new AppItem(this);
×
115
    }
116
  }
117
}
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