• 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

10.0
/src/main/java/com/box/sdkgen/schemas/invite/InviteInvitedToField.java
1
package com.box.sdkgen.schemas.invite;
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 InviteInvitedToField extends SerializableObject {
10

11
  protected String id;
12

13
  @JsonDeserialize(using = InviteInvitedToTypeField.InviteInvitedToTypeFieldDeserializer.class)
14
  @JsonSerialize(using = InviteInvitedToTypeField.InviteInvitedToTypeFieldSerializer.class)
15
  protected EnumWrapper<InviteInvitedToTypeField> type;
16

17
  protected String name;
18

19
  public InviteInvitedToField() {
20
    super();
1✔
21
  }
1✔
22

23
  protected InviteInvitedToField(Builder builder) {
24
    super();
×
25
    this.id = builder.id;
×
26
    this.type = builder.type;
×
27
    this.name = builder.name;
×
28
  }
×
29

30
  public String getId() {
31
    return id;
1✔
32
  }
33

34
  public EnumWrapper<InviteInvitedToTypeField> getType() {
35
    return type;
×
36
  }
37

38
  public String getName() {
39
    return name;
×
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
    InviteInvitedToField casted = (InviteInvitedToField) o;
×
51
    return Objects.equals(id, casted.id)
×
52
        && Objects.equals(type, casted.type)
×
53
        && Objects.equals(name, casted.name);
×
54
  }
55

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

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

NEW
78
  public static class Builder {
×
79

80
    protected String id;
81

82
    protected EnumWrapper<InviteInvitedToTypeField> type;
83

84
    protected String name;
85

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

91
    public Builder type(InviteInvitedToTypeField type) {
92
      this.type = new EnumWrapper<InviteInvitedToTypeField>(type);
×
93
      return this;
×
94
    }
95

96
    public Builder type(EnumWrapper<InviteInvitedToTypeField> type) {
97
      this.type = type;
×
98
      return this;
×
99
    }
100

101
    public Builder name(String name) {
102
      this.name = name;
×
103
      return this;
×
104
    }
105

106
    public InviteInvitedToField build() {
107
      return new InviteInvitedToField(this);
×
108
    }
109
  }
110
}
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