• 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/signtemplate/SignTemplateCustomBrandingField.java
1
package com.box.sdkgen.schemas.signtemplate;
2

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

7
public class SignTemplateCustomBrandingField extends SerializableObject {
8

9
  @JsonProperty("company_name")
10
  protected String companyName;
11

12
  @JsonProperty("logo_uri")
13
  protected String logoUri;
14

15
  @JsonProperty("branding_color")
16
  protected String brandingColor;
17

18
  @JsonProperty("email_footer_text")
19
  protected String emailFooterText;
20

21
  public SignTemplateCustomBrandingField() {
22
    super();
×
23
  }
×
24

25
  protected SignTemplateCustomBrandingField(Builder builder) {
26
    super();
×
27
    this.companyName = builder.companyName;
×
28
    this.logoUri = builder.logoUri;
×
29
    this.brandingColor = builder.brandingColor;
×
30
    this.emailFooterText = builder.emailFooterText;
×
31
  }
×
32

33
  public String getCompanyName() {
34
    return companyName;
×
35
  }
36

37
  public String getLogoUri() {
38
    return logoUri;
×
39
  }
40

41
  public String getBrandingColor() {
42
    return brandingColor;
×
43
  }
44

45
  public String getEmailFooterText() {
46
    return emailFooterText;
×
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
    SignTemplateCustomBrandingField casted = (SignTemplateCustomBrandingField) o;
×
58
    return Objects.equals(companyName, casted.companyName)
×
59
        && Objects.equals(logoUri, casted.logoUri)
×
60
        && Objects.equals(brandingColor, casted.brandingColor)
×
61
        && Objects.equals(emailFooterText, casted.emailFooterText);
×
62
  }
63

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(companyName, logoUri, brandingColor, emailFooterText);
×
67
  }
68

69
  @Override
70
  public String toString() {
71
    return "SignTemplateCustomBrandingField{"
×
72
        + "companyName='"
73
        + companyName
74
        + '\''
75
        + ", "
76
        + "logoUri='"
77
        + logoUri
78
        + '\''
79
        + ", "
80
        + "brandingColor='"
81
        + brandingColor
82
        + '\''
83
        + ", "
84
        + "emailFooterText='"
85
        + emailFooterText
86
        + '\''
87
        + "}";
88
  }
89

NEW
90
  public static class Builder {
×
91

92
    protected String companyName;
93

94
    protected String logoUri;
95

96
    protected String brandingColor;
97

98
    protected String emailFooterText;
99

100
    public Builder companyName(String companyName) {
101
      this.companyName = companyName;
×
102
      return this;
×
103
    }
104

105
    public Builder logoUri(String logoUri) {
106
      this.logoUri = logoUri;
×
107
      return this;
×
108
    }
109

110
    public Builder brandingColor(String brandingColor) {
111
      this.brandingColor = brandingColor;
×
112
      return this;
×
113
    }
114

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

120
    public SignTemplateCustomBrandingField build() {
121
      return new SignTemplateCustomBrandingField(this);
×
122
    }
123
  }
124
}
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