• 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

10.53
/src/main/java/com/box/sdkgen/schemas/realtimeserver/RealtimeServer.java
1
package com.box.sdkgen.schemas.realtimeserver;
2

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

7
public class RealtimeServer extends SerializableObject {
8

9
  protected String type;
10

11
  protected String url;
12

13
  protected String ttl;
14

15
  @JsonProperty("max_retries")
16
  protected String maxRetries;
17

18
  @JsonProperty("retry_timeout")
19
  protected Long retryTimeout;
20

21
  public RealtimeServer() {
22
    super();
1✔
23
  }
1✔
24

25
  protected RealtimeServer(Builder builder) {
26
    super();
×
27
    this.type = builder.type;
×
28
    this.url = builder.url;
×
29
    this.ttl = builder.ttl;
×
30
    this.maxRetries = builder.maxRetries;
×
31
    this.retryTimeout = builder.retryTimeout;
×
32
  }
×
33

34
  public String getType() {
35
    return type;
1✔
36
  }
37

38
  public String getUrl() {
39
    return url;
1✔
40
  }
41

42
  public String getTtl() {
43
    return ttl;
×
44
  }
45

46
  public String getMaxRetries() {
47
    return maxRetries;
×
48
  }
49

50
  public Long getRetryTimeout() {
51
    return retryTimeout;
×
52
  }
53

54
  @Override
55
  public boolean equals(Object o) {
56
    if (this == o) {
×
57
      return true;
×
58
    }
59
    if (o == null || getClass() != o.getClass()) {
×
60
      return false;
×
61
    }
62
    RealtimeServer casted = (RealtimeServer) o;
×
63
    return Objects.equals(type, casted.type)
×
64
        && Objects.equals(url, casted.url)
×
65
        && Objects.equals(ttl, casted.ttl)
×
66
        && Objects.equals(maxRetries, casted.maxRetries)
×
67
        && Objects.equals(retryTimeout, casted.retryTimeout);
×
68
  }
69

70
  @Override
71
  public int hashCode() {
72
    return Objects.hash(type, url, ttl, maxRetries, retryTimeout);
×
73
  }
74

75
  @Override
76
  public String toString() {
77
    return "RealtimeServer{"
×
78
        + "type='"
79
        + type
80
        + '\''
81
        + ", "
82
        + "url='"
83
        + url
84
        + '\''
85
        + ", "
86
        + "ttl='"
87
        + ttl
88
        + '\''
89
        + ", "
90
        + "maxRetries='"
91
        + maxRetries
92
        + '\''
93
        + ", "
94
        + "retryTimeout='"
95
        + retryTimeout
96
        + '\''
97
        + "}";
98
  }
99

NEW
100
  public static class Builder {
×
101

102
    protected String type;
103

104
    protected String url;
105

106
    protected String ttl;
107

108
    protected String maxRetries;
109

110
    protected Long retryTimeout;
111

112
    public Builder type(String type) {
113
      this.type = type;
×
114
      return this;
×
115
    }
116

117
    public Builder url(String url) {
118
      this.url = url;
×
119
      return this;
×
120
    }
121

122
    public Builder ttl(String ttl) {
123
      this.ttl = ttl;
×
124
      return this;
×
125
    }
126

127
    public Builder maxRetries(String maxRetries) {
128
      this.maxRetries = maxRetries;
×
129
      return this;
×
130
    }
131

132
    public Builder retryTimeout(Long retryTimeout) {
133
      this.retryTimeout = retryTimeout;
×
134
      return this;
×
135
    }
136

137
    public RealtimeServer build() {
138
      return new RealtimeServer(this);
×
139
    }
140
  }
141
}
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