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

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.Objects;
9

10
public class TranscriptSkillCardInvocationField extends SerializableObject {
11

12
  @JsonDeserialize(
13
      using =
14
          TranscriptSkillCardInvocationTypeField.TranscriptSkillCardInvocationTypeFieldDeserializer
15
              .class)
16
  @JsonSerialize(
17
      using =
18
          TranscriptSkillCardInvocationTypeField.TranscriptSkillCardInvocationTypeFieldSerializer
19
              .class)
20
  protected EnumWrapper<TranscriptSkillCardInvocationTypeField> type;
21

22
  protected final String id;
23

24
  public TranscriptSkillCardInvocationField(@JsonProperty("id") String id) {
25
    super();
×
26
    this.id = id;
×
27
    this.type =
×
28
        new EnumWrapper<TranscriptSkillCardInvocationTypeField>(
29
            TranscriptSkillCardInvocationTypeField.SKILL_INVOCATION);
30
  }
×
31

32
  protected TranscriptSkillCardInvocationField(Builder builder) {
33
    super();
×
34
    this.type = builder.type;
×
35
    this.id = builder.id;
×
36
  }
×
37

38
  public EnumWrapper<TranscriptSkillCardInvocationTypeField> getType() {
39
    return type;
×
40
  }
41

42
  public String getId() {
43
    return id;
×
44
  }
45

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

58
  @Override
59
  public int hashCode() {
60
    return Objects.hash(type, id);
×
61
  }
62

63
  @Override
64
  public String toString() {
65
    return "TranscriptSkillCardInvocationField{"
×
66
        + "type='"
67
        + type
68
        + '\''
69
        + ", "
70
        + "id='"
71
        + id
72
        + '\''
73
        + "}";
74
  }
75

76
  public static class Builder {
77

78
    protected EnumWrapper<TranscriptSkillCardInvocationTypeField> type;
79

80
    protected final String id;
81

NEW
82
    public Builder(String id) {
×
83
      this.id = id;
×
84
      this.type =
×
85
          new EnumWrapper<TranscriptSkillCardInvocationTypeField>(
86
              TranscriptSkillCardInvocationTypeField.SKILL_INVOCATION);
87
    }
×
88

89
    public Builder type(TranscriptSkillCardInvocationTypeField type) {
UNCOV
90
      this.type = new EnumWrapper<TranscriptSkillCardInvocationTypeField>(type);
×
91
      return this;
×
92
    }
93

94
    public Builder type(EnumWrapper<TranscriptSkillCardInvocationTypeField> type) {
UNCOV
95
      this.type = type;
×
96
      return this;
×
97
    }
98

99
    public TranscriptSkillCardInvocationField build() {
100
      return new TranscriptSkillCardInvocationField(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