• 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

7.14
/src/main/java/com/box/sdkgen/schemas/aiagentinfo/AiAgentInfoModelsField.java
1
package com.box.sdkgen.schemas.aiagentinfo;
2

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

7
public class AiAgentInfoModelsField extends SerializableObject {
8

9
  protected String name;
10

11
  protected String provider;
12

13
  @JsonProperty("supported_purpose")
14
  protected String supportedPurpose;
15

16
  public AiAgentInfoModelsField() {
17
    super();
1✔
18
  }
1✔
19

20
  protected AiAgentInfoModelsField(Builder builder) {
21
    super();
×
22
    this.name = builder.name;
×
23
    this.provider = builder.provider;
×
24
    this.supportedPurpose = builder.supportedPurpose;
×
25
  }
×
26

27
  public String getName() {
28
    return name;
×
29
  }
30

31
  public String getProvider() {
32
    return provider;
×
33
  }
34

35
  public String getSupportedPurpose() {
36
    return supportedPurpose;
×
37
  }
38

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

53
  @Override
54
  public int hashCode() {
55
    return Objects.hash(name, provider, supportedPurpose);
×
56
  }
57

58
  @Override
59
  public String toString() {
60
    return "AiAgentInfoModelsField{"
×
61
        + "name='"
62
        + name
63
        + '\''
64
        + ", "
65
        + "provider='"
66
        + provider
67
        + '\''
68
        + ", "
69
        + "supportedPurpose='"
70
        + supportedPurpose
71
        + '\''
72
        + "}";
73
  }
74

NEW
75
  public static class Builder {
×
76

77
    protected String name;
78

79
    protected String provider;
80

81
    protected String supportedPurpose;
82

83
    public Builder name(String name) {
84
      this.name = name;
×
85
      return this;
×
86
    }
87

88
    public Builder provider(String provider) {
89
      this.provider = provider;
×
90
      return this;
×
91
    }
92

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

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