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

12
  @JsonDeserialize(
13
      using =
14
          KeywordSkillCardInvocationTypeField.KeywordSkillCardInvocationTypeFieldDeserializer.class)
15
  @JsonSerialize(
16
      using =
17
          KeywordSkillCardInvocationTypeField.KeywordSkillCardInvocationTypeFieldSerializer.class)
18
  protected EnumWrapper<KeywordSkillCardInvocationTypeField> type;
19

20
  protected final String id;
21

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

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

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

40
  public String getId() {
41
    return id;
×
42
  }
43

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

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

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

74
  public static class Builder {
75

76
    protected EnumWrapper<KeywordSkillCardInvocationTypeField> type;
77

78
    protected final String id;
79

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

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

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

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