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

box / box-java-sdk-gen / #293

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#293

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%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

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

15
  protected final String id;
16

17
  @JsonDeserialize(using = WebLinkBaseTypeField.WebLinkBaseTypeFieldDeserializer.class)
18
  @JsonSerialize(using = WebLinkBaseTypeField.WebLinkBaseTypeFieldSerializer.class)
19
  protected EnumWrapper<WebLinkBaseTypeField> type;
20

21
  protected String etag;
22

23
  public WebLinkBase(@JsonProperty("id") String id) {
24
    super();
1✔
25
    this.id = id;
1✔
26
    this.type = new EnumWrapper<WebLinkBaseTypeField>(WebLinkBaseTypeField.WEB_LINK);
1✔
27
  }
1✔
28

29
  protected WebLinkBase(Builder builder) {
30
    super();
×
31
    this.id = builder.id;
×
UNCOV
32
    this.type = builder.type;
×
UNCOV
33
    this.etag = builder.etag;
×
UNCOV
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
35
  }
×
36

37
  public String getId() {
38
    return id;
1✔
39
  }
40

41
  public EnumWrapper<WebLinkBaseTypeField> getType() {
42
    return type;
×
43
  }
44

45
  public String getEtag() {
UNCOV
46
    return etag;
×
47
  }
48

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

63
  @Override
64
  public int hashCode() {
UNCOV
65
    return Objects.hash(id, type, etag);
×
66
  }
67

68
  @Override
69
  public String toString() {
UNCOV
70
    return "WebLinkBase{"
×
71
        + "id='"
72
        + id
73
        + '\''
74
        + ", "
75
        + "type='"
76
        + type
77
        + '\''
78
        + ", "
79
        + "etag='"
80
        + etag
81
        + '\''
82
        + "}";
83
  }
84

85
  public static class Builder extends NullableFieldTracker {
86

87
    protected final String id;
88

89
    protected EnumWrapper<WebLinkBaseTypeField> type;
90

91
    protected String etag;
92

93
    public Builder(String id) {
UNCOV
94
      super();
×
95
      this.id = id;
×
96
      this.type = new EnumWrapper<WebLinkBaseTypeField>(WebLinkBaseTypeField.WEB_LINK);
×
UNCOV
97
    }
×
98

99
    public Builder type(WebLinkBaseTypeField type) {
100
      this.type = new EnumWrapper<WebLinkBaseTypeField>(type);
×
101
      return this;
×
102
    }
103

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

109
    public Builder etag(String etag) {
110
      this.etag = etag;
×
UNCOV
111
      return this;
×
112
    }
113

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