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

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

7
public class UserNotificationEmailField extends SerializableObject {
8

9
  protected String email;
10

11
  @JsonProperty("is_confirmed")
12
  protected Boolean isConfirmed;
13

14
  public UserNotificationEmailField() {
15
    super();
×
16
  }
×
17

18
  protected UserNotificationEmailField(Builder builder) {
19
    super();
×
20
    this.email = builder.email;
×
21
    this.isConfirmed = builder.isConfirmed;
×
22
  }
×
23

24
  public String getEmail() {
25
    return email;
×
26
  }
27

28
  public Boolean getIsConfirmed() {
29
    return isConfirmed;
×
30
  }
31

32
  @Override
33
  public boolean equals(Object o) {
34
    if (this == o) {
×
35
      return true;
×
36
    }
37
    if (o == null || getClass() != o.getClass()) {
×
38
      return false;
×
39
    }
40
    UserNotificationEmailField casted = (UserNotificationEmailField) o;
×
41
    return Objects.equals(email, casted.email) && Objects.equals(isConfirmed, casted.isConfirmed);
×
42
  }
43

44
  @Override
45
  public int hashCode() {
46
    return Objects.hash(email, isConfirmed);
×
47
  }
48

49
  @Override
50
  public String toString() {
51
    return "UserNotificationEmailField{"
×
52
        + "email='"
53
        + email
54
        + '\''
55
        + ", "
56
        + "isConfirmed='"
57
        + isConfirmed
58
        + '\''
59
        + "}";
60
  }
61

NEW
62
  public static class Builder {
×
63

64
    protected String email;
65

66
    protected Boolean isConfirmed;
67

68
    public Builder email(String email) {
69
      this.email = email;
×
70
      return this;
×
71
    }
72

73
    public Builder isConfirmed(Boolean isConfirmed) {
74
      this.isConfirmed = isConfirmed;
×
75
      return this;
×
76
    }
77

78
    public UserNotificationEmailField build() {
79
      return new UserNotificationEmailField(this);
×
80
    }
81
  }
82
}
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