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

box / box-java-sdk-gen / #541

05 Sep 2025 02:31PM UTC coverage: 7.451% (-29.2%) from 36.66%
#541

push

other

web-flow
chore: release version 0.8.1 (#437)

1 of 1 new or added line in 1 file covered. (100.0%)

14652 existing lines in 1191 files now uncovered.

3737 of 50151 relevant lines covered (7.45%)

0.07 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/aitextgen/AiTextGenItemsField.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) {
UNCOV
24
    super();
×
UNCOV
25
    this.id = id;
×
UNCOV
26
    this.type = new EnumWrapper<WebLinkBaseTypeField>(WebLinkBaseTypeField.WEB_LINK);
×
UNCOV
27
  }
×
28

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

37
  public String getId() {
UNCOV
38
    return id;
×
39
  }
40

41
  public EnumWrapper<WebLinkBaseTypeField> getType() {
UNCOV
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) {
×
52
      return true;
×
53
    }
54
    if (o == null || getClass() != o.getClass()) {
×
55
      return false;
×
56
    }
57
    WebLinkBase casted = (WebLinkBase) o;
×
58
    return Objects.equals(id, casted.id)
×
59
        && Objects.equals(type, casted.type)
×
60
        && Objects.equals(etag, casted.etag);
×
61
  }
62

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

68
  @Override
69
  public String toString() {
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) {
94
      super();
×
95
      this.id = id;
×
96
      this.type = new EnumWrapper<WebLinkBaseTypeField>(WebLinkBaseTypeField.WEB_LINK);
×
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;
×
111
      return this;
×
112
    }
113

114
    public WebLinkBase build() {
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