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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 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/searchresultwithsharedlink/SearchResultWithSharedLink.java
1
package com.box.sdkgen.schemas.searchresultwithsharedlink;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.filefullorfolderfullorweblink.FileFullOrFolderFullOrWebLink;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.Objects;
7

8
public class SearchResultWithSharedLink extends SerializableObject {
9

10
  @JsonProperty("accessible_via_shared_link")
11
  protected String accessibleViaSharedLink;
12

13
  protected FileFullOrFolderFullOrWebLink item;
14

15
  protected String type;
16

17
  public SearchResultWithSharedLink() {
18
    super();
×
19
  }
×
20

21
  protected SearchResultWithSharedLink(Builder builder) {
22
    super();
×
23
    this.accessibleViaSharedLink = builder.accessibleViaSharedLink;
×
24
    this.item = builder.item;
×
25
    this.type = builder.type;
×
26
  }
×
27

28
  public String getAccessibleViaSharedLink() {
29
    return accessibleViaSharedLink;
×
30
  }
31

32
  public FileFullOrFolderFullOrWebLink getItem() {
33
    return item;
×
34
  }
35

36
  public String getType() {
37
    return type;
×
38
  }
39

40
  @Override
41
  public boolean equals(Object o) {
42
    if (this == o) {
×
43
      return true;
×
44
    }
45
    if (o == null || getClass() != o.getClass()) {
×
46
      return false;
×
47
    }
48
    SearchResultWithSharedLink casted = (SearchResultWithSharedLink) o;
×
49
    return Objects.equals(accessibleViaSharedLink, casted.accessibleViaSharedLink)
×
50
        && Objects.equals(item, casted.item)
×
51
        && Objects.equals(type, casted.type);
×
52
  }
53

54
  @Override
55
  public int hashCode() {
56
    return Objects.hash(accessibleViaSharedLink, item, type);
×
57
  }
58

59
  @Override
60
  public String toString() {
61
    return "SearchResultWithSharedLink{"
×
62
        + "accessibleViaSharedLink='"
63
        + accessibleViaSharedLink
64
        + '\''
65
        + ", "
66
        + "item='"
67
        + item
68
        + '\''
69
        + ", "
70
        + "type='"
71
        + type
72
        + '\''
73
        + "}";
74
  }
75

NEW
76
  public static class Builder {
×
77

78
    protected String accessibleViaSharedLink;
79

80
    protected FileFullOrFolderFullOrWebLink item;
81

82
    protected String type;
83

84
    public Builder accessibleViaSharedLink(String accessibleViaSharedLink) {
UNCOV
85
      this.accessibleViaSharedLink = accessibleViaSharedLink;
×
86
      return this;
×
87
    }
88

89
    public Builder item(FileFullOrFolderFullOrWebLink item) {
90
      this.item = item;
×
91
      return this;
×
92
    }
93

94
    public Builder type(String type) {
95
      this.type = type;
×
96
      return this;
×
97
    }
98

99
    public SearchResultWithSharedLink build() {
100
      return new SearchResultWithSharedLink(this);
×
101
    }
102
  }
103
}
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