• 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/managers/folders/UpdateFolderByIdRequestBodyCollectionsField.java
1
package com.box.sdkgen.managers.folders;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import java.util.Objects;
5

6
public class UpdateFolderByIdRequestBodyCollectionsField extends SerializableObject {
7

8
  protected String id;
9

10
  protected String type;
11

12
  public UpdateFolderByIdRequestBodyCollectionsField() {
13
    super();
×
14
  }
×
15

16
  protected UpdateFolderByIdRequestBodyCollectionsField(Builder builder) {
UNCOV
17
    super();
×
18
    this.id = builder.id;
×
19
    this.type = builder.type;
×
20
  }
×
21

22
  public String getId() {
23
    return id;
×
24
  }
25

26
  public String getType() {
27
    return type;
×
28
  }
29

30
  @Override
31
  public boolean equals(Object o) {
32
    if (this == o) {
×
33
      return true;
×
34
    }
35
    if (o == null || getClass() != o.getClass()) {
×
36
      return false;
×
37
    }
38
    UpdateFolderByIdRequestBodyCollectionsField casted =
×
39
        (UpdateFolderByIdRequestBodyCollectionsField) o;
40
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
41
  }
42

43
  @Override
44
  public int hashCode() {
45
    return Objects.hash(id, type);
×
46
  }
47

48
  @Override
49
  public String toString() {
50
    return "UpdateFolderByIdRequestBodyCollectionsField{"
×
51
        + "id='"
52
        + id
53
        + '\''
54
        + ", "
55
        + "type='"
56
        + type
57
        + '\''
58
        + "}";
59
  }
60

NEW
61
  public static class Builder {
×
62

63
    protected String id;
64

65
    protected String type;
66

67
    public Builder id(String id) {
68
      this.id = id;
×
69
      return this;
×
70
    }
71

72
    public Builder type(String type) {
73
      this.type = type;
×
74
      return this;
×
75
    }
76

77
    public UpdateFolderByIdRequestBodyCollectionsField build() {
78
      return new UpdateFolderByIdRequestBodyCollectionsField(this);
×
79
    }
80
  }
81
}
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