• 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

16.67
/src/main/java/com/box/sdkgen/schemas/metadatacascadepolicy/MetadataCascadePolicyParentField.java
1
package com.box.sdkgen.schemas.metadatacascadepolicy;
2

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

9
public class MetadataCascadePolicyParentField extends SerializableObject {
10

11
  @JsonDeserialize(
12
      using =
13
          MetadataCascadePolicyParentTypeField.MetadataCascadePolicyParentTypeFieldDeserializer
14
              .class)
15
  @JsonSerialize(
16
      using =
17
          MetadataCascadePolicyParentTypeField.MetadataCascadePolicyParentTypeFieldSerializer.class)
18
  protected EnumWrapper<MetadataCascadePolicyParentTypeField> type;
19

20
  protected String id;
21

22
  public MetadataCascadePolicyParentField() {
23
    super();
1✔
24
  }
1✔
25

26
  protected MetadataCascadePolicyParentField(Builder builder) {
27
    super();
×
28
    this.type = builder.type;
×
29
    this.id = builder.id;
×
30
  }
×
31

32
  public EnumWrapper<MetadataCascadePolicyParentTypeField> getType() {
33
    return type;
1✔
34
  }
35

36
  public String getId() {
37
    return id;
1✔
38
  }
39

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

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

57
  @Override
58
  public String toString() {
59
    return "MetadataCascadePolicyParentField{"
×
60
        + "type='"
61
        + type
62
        + '\''
63
        + ", "
64
        + "id='"
65
        + id
66
        + '\''
67
        + "}";
68
  }
69

NEW
70
  public static class Builder {
×
71

72
    protected EnumWrapper<MetadataCascadePolicyParentTypeField> type;
73

74
    protected String id;
75

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

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

86
    public Builder id(String id) {
87
      this.id = id;
×
88
      return this;
×
89
    }
90

91
    public MetadataCascadePolicyParentField build() {
92
      return new MetadataCascadePolicyParentField(this);
×
93
    }
94
  }
95
}
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