• 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/timelineskillcard/TimelineSkillCardInvocationField.java
1
package com.box.sdkgen.schemas.timelineskillcard;
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 TimelineSkillCardInvocationField extends SerializableObject {
11

12
  @JsonDeserialize(
13
      using =
14
          TimelineSkillCardInvocationTypeField.TimelineSkillCardInvocationTypeFieldDeserializer
15
              .class)
16
  @JsonSerialize(
17
      using =
18
          TimelineSkillCardInvocationTypeField.TimelineSkillCardInvocationTypeFieldSerializer.class)
19
  protected EnumWrapper<TimelineSkillCardInvocationTypeField> type;
20

21
  protected final String id;
22

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

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

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

41
  public String getId() {
42
    return id;
×
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
    TimelineSkillCardInvocationField casted = (TimelineSkillCardInvocationField) o;
×
54
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
55
  }
56

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

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

75
  public static class Builder {
76

77
    protected EnumWrapper<TimelineSkillCardInvocationTypeField> type;
78

79
    protected final String id;
80

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

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

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

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