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

box / box-java-sdk-gen / #295

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

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

10.26
/src/main/java/com/box/sdkgen/schemas/weblinkmini/WebLinkMini.java
1
package com.box.sdkgen.schemas.weblinkmini;
2

3
import com.box.sdkgen.schemas.weblinkbase.WebLinkBase;
4
import com.box.sdkgen.schemas.weblinkbase.WebLinkBaseTypeField;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Objects;
9

10
@JsonFilter("nullablePropertyFilter")
11
public class WebLinkMini extends WebLinkBase {
12

13
  protected String url;
14

15
  @JsonProperty("sequence_id")
16
  protected String sequenceId;
17

18
  protected String name;
19

20
  public WebLinkMini(@JsonProperty("id") String id) {
21
    super(id);
1✔
22
  }
1✔
23

24
  protected WebLinkMini(Builder builder) {
25
    super(builder);
×
26
    this.url = builder.url;
×
27
    this.sequenceId = builder.sequenceId;
×
UNCOV
28
    this.name = builder.name;
×
UNCOV
29
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
30
  }
×
31

32
  public String getUrl() {
33
    return url;
1✔
34
  }
35

36
  public String getSequenceId() {
UNCOV
37
    return sequenceId;
×
38
  }
39

40
  public String getName() {
41
    return name;
1✔
42
  }
43

44
  @Override
45
  public boolean equals(Object o) {
46
    if (this == o) {
×
47
      return true;
×
48
    }
49
    if (o == null || getClass() != o.getClass()) {
×
50
      return false;
×
51
    }
52
    WebLinkMini casted = (WebLinkMini) o;
×
53
    return Objects.equals(id, casted.id)
×
54
        && Objects.equals(type, casted.type)
×
55
        && Objects.equals(etag, casted.etag)
×
UNCOV
56
        && Objects.equals(url, casted.url)
×
UNCOV
57
        && Objects.equals(sequenceId, casted.sequenceId)
×
UNCOV
58
        && Objects.equals(name, casted.name);
×
59
  }
60

61
  @Override
62
  public int hashCode() {
UNCOV
63
    return Objects.hash(id, type, etag, url, sequenceId, name);
×
64
  }
65

66
  @Override
67
  public String toString() {
UNCOV
68
    return "WebLinkMini{"
×
69
        + "id='"
70
        + id
71
        + '\''
72
        + ", "
73
        + "type='"
74
        + type
75
        + '\''
76
        + ", "
77
        + "etag='"
78
        + etag
79
        + '\''
80
        + ", "
81
        + "url='"
82
        + url
83
        + '\''
84
        + ", "
85
        + "sequenceId='"
86
        + sequenceId
87
        + '\''
88
        + ", "
89
        + "name='"
90
        + name
91
        + '\''
92
        + "}";
93
  }
94

95
  public static class Builder extends WebLinkBase.Builder {
96

97
    protected String url;
98

99
    protected String sequenceId;
100

101
    protected String name;
102

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

107
    public Builder url(String url) {
UNCOV
108
      this.url = url;
×
UNCOV
109
      return this;
×
110
    }
111

112
    public Builder sequenceId(String sequenceId) {
UNCOV
113
      this.sequenceId = sequenceId;
×
UNCOV
114
      return this;
×
115
    }
116

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

122
    @Override
123
    public Builder type(WebLinkBaseTypeField type) {
UNCOV
124
      this.type = new EnumWrapper<WebLinkBaseTypeField>(type);
×
UNCOV
125
      return this;
×
126
    }
127

128
    @Override
129
    public Builder type(EnumWrapper<WebLinkBaseTypeField> type) {
UNCOV
130
      this.type = type;
×
UNCOV
131
      return this;
×
132
    }
133

134
    @Override
135
    public Builder etag(String etag) {
UNCOV
136
      this.etag = etag;
×
UNCOV
137
      return this;
×
138
    }
139

140
    public WebLinkMini build() {
UNCOV
141
      return new WebLinkMini(this);
×
142
    }
143
  }
144
}
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