• 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

17.86
/src/main/java/com/box/sdkgen/schemas/useravatar/UserAvatarPicUrlsField.java
1
package com.box.sdkgen.schemas.useravatar;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import java.util.Objects;
5

6
public class UserAvatarPicUrlsField extends SerializableObject {
7

8
  protected String small;
9

10
  protected String large;
11

12
  protected String preview;
13

14
  public UserAvatarPicUrlsField() {
15
    super();
1✔
16
  }
1✔
17

18
  protected UserAvatarPicUrlsField(Builder builder) {
19
    super();
×
20
    this.small = builder.small;
×
21
    this.large = builder.large;
×
22
    this.preview = builder.preview;
×
23
  }
×
24

25
  public String getSmall() {
26
    return small;
1✔
27
  }
28

29
  public String getLarge() {
30
    return large;
1✔
31
  }
32

33
  public String getPreview() {
34
    return preview;
1✔
35
  }
36

37
  @Override
38
  public boolean equals(Object o) {
39
    if (this == o) {
×
40
      return true;
×
41
    }
42
    if (o == null || getClass() != o.getClass()) {
×
43
      return false;
×
44
    }
45
    UserAvatarPicUrlsField casted = (UserAvatarPicUrlsField) o;
×
46
    return Objects.equals(small, casted.small)
×
47
        && Objects.equals(large, casted.large)
×
48
        && Objects.equals(preview, casted.preview);
×
49
  }
50

51
  @Override
52
  public int hashCode() {
53
    return Objects.hash(small, large, preview);
×
54
  }
55

56
  @Override
57
  public String toString() {
58
    return "UserAvatarPicUrlsField{"
×
59
        + "small='"
60
        + small
61
        + '\''
62
        + ", "
63
        + "large='"
64
        + large
65
        + '\''
66
        + ", "
67
        + "preview='"
68
        + preview
69
        + '\''
70
        + "}";
71
  }
72

NEW
73
  public static class Builder {
×
74

75
    protected String small;
76

77
    protected String large;
78

79
    protected String preview;
80

81
    public Builder small(String small) {
82
      this.small = small;
×
83
      return this;
×
84
    }
85

86
    public Builder large(String large) {
87
      this.large = large;
×
88
      return this;
×
89
    }
90

91
    public Builder preview(String preview) {
92
      this.preview = preview;
×
93
      return this;
×
94
    }
95

96
    public UserAvatarPicUrlsField build() {
97
      return new UserAvatarPicUrlsField(this);
×
98
    }
99
  }
100
}
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