• 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

22.22
/src/main/java/com/box/sdkgen/schemas/integrationmappingbase/IntegrationMappingBase.java
1
package com.box.sdkgen.schemas.integrationmappingbase;
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 IntegrationMappingBase extends SerializableObject {
11

12
  protected final String id;
13

14
  @JsonDeserialize(
15
      using = IntegrationMappingBaseTypeField.IntegrationMappingBaseTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using = IntegrationMappingBaseTypeField.IntegrationMappingBaseTypeFieldSerializer.class)
18
  protected EnumWrapper<IntegrationMappingBaseTypeField> type;
19

20
  public IntegrationMappingBase(@JsonProperty("id") String id) {
21
    super();
1✔
22
    this.id = id;
1✔
23
    this.type =
1✔
24
        new EnumWrapper<IntegrationMappingBaseTypeField>(
25
            IntegrationMappingBaseTypeField.INTEGRATION_MAPPING);
26
  }
1✔
27

28
  protected IntegrationMappingBase(Builder builder) {
29
    super();
×
30
    this.id = builder.id;
×
31
    this.type = builder.type;
×
32
  }
×
33

34
  public String getId() {
35
    return id;
1✔
36
  }
37

38
  public EnumWrapper<IntegrationMappingBaseTypeField> getType() {
39
    return type;
1✔
40
  }
41

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

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

59
  @Override
60
  public String toString() {
61
    return "IntegrationMappingBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
62
  }
63

64
  public static class Builder {
65

66
    protected final String id;
67

68
    protected EnumWrapper<IntegrationMappingBaseTypeField> type;
69

NEW
70
    public Builder(String id) {
×
71
      this.id = id;
×
72
      this.type =
×
73
          new EnumWrapper<IntegrationMappingBaseTypeField>(
74
              IntegrationMappingBaseTypeField.INTEGRATION_MAPPING);
75
    }
×
76

77
    public Builder type(IntegrationMappingBaseTypeField type) {
78
      this.type = new EnumWrapper<IntegrationMappingBaseTypeField>(type);
×
79
      return this;
×
80
    }
81

82
    public Builder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
83
      this.type = type;
×
84
      return this;
×
85
    }
86

87
    public IntegrationMappingBase build() {
88
      return new IntegrationMappingBase(this);
×
89
    }
90
  }
91
}
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