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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

12.82
/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
/**
11
 * Web links are objects that point to URLs. These objects are also known as bookmarks within the
12
 * Box web application.
13
 *
14
 * <p>Web link objects are treated similarly to file objects, they will also support most actions
15
 * that apply to regular files.
16
 */
17
@JsonFilter("nullablePropertyFilter")
18
public class WebLinkMini extends WebLinkBase {
19

20
  /** The URL this web link points to. */
21
  protected String url;
22

23
  @JsonProperty("sequence_id")
24
  protected String sequenceId;
25

26
  /** The name of the web link. */
27
  protected String name;
28

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

33
  protected WebLinkMini(Builder builder) {
34
    super(builder);
×
35
    this.url = builder.url;
×
36
    this.sequenceId = builder.sequenceId;
×
37
    this.name = builder.name;
×
38
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
39
  }
×
40

41
  public String getUrl() {
42
    return url;
1✔
43
  }
44

45
  public String getSequenceId() {
46
    return sequenceId;
1✔
47
  }
48

49
  public String getName() {
50
    return name;
1✔
51
  }
52

53
  @Override
54
  public boolean equals(Object o) {
55
    if (this == o) {
×
56
      return true;
×
57
    }
58
    if (o == null || getClass() != o.getClass()) {
×
59
      return false;
×
60
    }
61
    WebLinkMini casted = (WebLinkMini) o;
×
62
    return Objects.equals(id, casted.id)
×
63
        && Objects.equals(type, casted.type)
×
64
        && Objects.equals(etag, casted.etag)
×
65
        && Objects.equals(url, casted.url)
×
66
        && Objects.equals(sequenceId, casted.sequenceId)
×
67
        && Objects.equals(name, casted.name);
×
68
  }
69

70
  @Override
71
  public int hashCode() {
72
    return Objects.hash(id, type, etag, url, sequenceId, name);
×
73
  }
74

75
  @Override
76
  public String toString() {
77
    return "WebLinkMini{"
×
78
        + "id='"
79
        + id
80
        + '\''
81
        + ", "
82
        + "type='"
83
        + type
84
        + '\''
85
        + ", "
86
        + "etag='"
87
        + etag
88
        + '\''
89
        + ", "
90
        + "url='"
91
        + url
92
        + '\''
93
        + ", "
94
        + "sequenceId='"
95
        + sequenceId
96
        + '\''
97
        + ", "
98
        + "name='"
99
        + name
100
        + '\''
101
        + "}";
102
  }
103

104
  public static class Builder extends WebLinkBase.Builder {
105

106
    protected String url;
107

108
    protected String sequenceId;
109

110
    protected String name;
111

112
    public Builder(String id) {
113
      super(id);
×
114
    }
×
115

116
    public Builder url(String url) {
117
      this.url = url;
×
118
      return this;
×
119
    }
120

121
    public Builder sequenceId(String sequenceId) {
122
      this.sequenceId = sequenceId;
×
123
      return this;
×
124
    }
125

126
    public Builder name(String name) {
127
      this.name = name;
×
128
      return this;
×
129
    }
130

131
    @Override
132
    public Builder type(WebLinkBaseTypeField type) {
133
      this.type = new EnumWrapper<WebLinkBaseTypeField>(type);
×
134
      return this;
×
135
    }
136

137
    @Override
138
    public Builder type(EnumWrapper<WebLinkBaseTypeField> type) {
139
      this.type = type;
×
140
      return this;
×
141
    }
142

143
    @Override
144
    public Builder etag(String etag) {
145
      this.etag = etag;
×
146
      return this;
×
147
    }
148

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