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

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

8
public class AiAgentBasicTextToolBase extends SerializableObject {
9

10
  protected String model;
11

12
  @JsonProperty("num_tokens_for_completion")
13
  protected Long numTokensForCompletion;
14

15
  @JsonProperty("llm_endpoint_params")
16
  protected AiLlmEndpointParams llmEndpointParams;
17

18
  public AiAgentBasicTextToolBase() {
19
    super();
1✔
20
  }
1✔
21

22
  protected AiAgentBasicTextToolBase(Builder builder) {
23
    super();
×
24
    this.model = builder.model;
×
25
    this.numTokensForCompletion = builder.numTokensForCompletion;
×
26
    this.llmEndpointParams = builder.llmEndpointParams;
×
27
  }
×
28

29
  public String getModel() {
30
    return model;
×
31
  }
32

33
  public Long getNumTokensForCompletion() {
34
    return numTokensForCompletion;
×
35
  }
36

37
  public AiLlmEndpointParams getLlmEndpointParams() {
38
    return llmEndpointParams;
×
39
  }
40

41
  @Override
42
  public boolean equals(Object o) {
43
    if (this == o) {
×
44
      return true;
×
45
    }
46
    if (o == null || getClass() != o.getClass()) {
×
47
      return false;
×
48
    }
49
    AiAgentBasicTextToolBase casted = (AiAgentBasicTextToolBase) o;
×
50
    return Objects.equals(model, casted.model)
×
51
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
52
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams);
×
53
  }
54

55
  @Override
56
  public int hashCode() {
57
    return Objects.hash(model, numTokensForCompletion, llmEndpointParams);
×
58
  }
59

60
  @Override
61
  public String toString() {
62
    return "AiAgentBasicTextToolBase{"
×
63
        + "model='"
64
        + model
65
        + '\''
66
        + ", "
67
        + "numTokensForCompletion='"
68
        + numTokensForCompletion
69
        + '\''
70
        + ", "
71
        + "llmEndpointParams='"
72
        + llmEndpointParams
73
        + '\''
74
        + "}";
75
  }
76

NEW
77
  public static class Builder {
×
78

79
    protected String model;
80

81
    protected Long numTokensForCompletion;
82

83
    protected AiLlmEndpointParams llmEndpointParams;
84

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

90
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
91
      this.numTokensForCompletion = numTokensForCompletion;
×
92
      return this;
×
93
    }
94

95
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
UNCOV
96
      this.llmEndpointParams = llmEndpointParams;
×
97
      return this;
×
98
    }
99

100
    public AiAgentBasicTextToolBase build() {
101
      return new AiAgentBasicTextToolBase(this);
×
102
    }
103
  }
104
}
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