• 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

24.14
/src/main/java/com/box/sdkgen/schemas/aiextract/AiExtract.java
1
package com.box.sdkgen.schemas.aiextract;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.aiagentextractoraiagentreference.AiAgentExtractOrAiAgentReference;
5
import com.box.sdkgen.schemas.aiitembase.AiItemBase;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.List;
8
import java.util.Objects;
9

10
public class AiExtract extends SerializableObject {
11

12
  protected final String prompt;
13

14
  protected final List<AiItemBase> items;
15

16
  @JsonProperty("ai_agent")
17
  protected AiAgentExtractOrAiAgentReference aiAgent;
18

19
  public AiExtract(
20
      @JsonProperty("prompt") String prompt, @JsonProperty("items") List<AiItemBase> items) {
21
    super();
1✔
22
    this.prompt = prompt;
1✔
23
    this.items = items;
1✔
24
  }
1✔
25

26
  protected AiExtract(Builder builder) {
27
    super();
×
28
    this.prompt = builder.prompt;
×
29
    this.items = builder.items;
×
30
    this.aiAgent = builder.aiAgent;
×
31
  }
×
32

33
  public String getPrompt() {
34
    return prompt;
1✔
35
  }
36

37
  public List<AiItemBase> getItems() {
38
    return items;
1✔
39
  }
40

41
  public AiAgentExtractOrAiAgentReference getAiAgent() {
42
    return aiAgent;
1✔
43
  }
44

45
  @Override
46
  public boolean equals(Object o) {
47
    if (this == o) {
×
48
      return true;
×
49
    }
50
    if (o == null || getClass() != o.getClass()) {
×
51
      return false;
×
52
    }
53
    AiExtract casted = (AiExtract) o;
×
54
    return Objects.equals(prompt, casted.prompt)
×
55
        && Objects.equals(items, casted.items)
×
56
        && Objects.equals(aiAgent, casted.aiAgent);
×
57
  }
58

59
  @Override
60
  public int hashCode() {
61
    return Objects.hash(prompt, items, aiAgent);
×
62
  }
63

64
  @Override
65
  public String toString() {
66
    return "AiExtract{"
×
67
        + "prompt='"
68
        + prompt
69
        + '\''
70
        + ", "
71
        + "items='"
72
        + items
73
        + '\''
74
        + ", "
75
        + "aiAgent='"
76
        + aiAgent
77
        + '\''
78
        + "}";
79
  }
80

81
  public static class Builder {
82

83
    protected final String prompt;
84

85
    protected final List<AiItemBase> items;
86

87
    protected AiAgentExtractOrAiAgentReference aiAgent;
88

NEW
89
    public Builder(String prompt, List<AiItemBase> items) {
×
90
      this.prompt = prompt;
×
91
      this.items = items;
×
92
    }
×
93

94
    public Builder aiAgent(AiAgentExtractOrAiAgentReference aiAgent) {
95
      this.aiAgent = aiAgent;
×
96
      return this;
×
97
    }
98

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