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

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

6
public class UpdateAllSkillCardsOnFileRequestBodyUsageField extends SerializableObject {
7

8
  protected String unit;
9

10
  protected Double value;
11

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

16
  protected UpdateAllSkillCardsOnFileRequestBodyUsageField(Builder builder) {
UNCOV
17
    super();
×
18
    this.unit = builder.unit;
×
19
    this.value = builder.value;
×
20
  }
×
21

22
  public String getUnit() {
23
    return unit;
×
24
  }
25

26
  public Double getValue() {
27
    return value;
×
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
    UpdateAllSkillCardsOnFileRequestBodyUsageField casted =
×
39
        (UpdateAllSkillCardsOnFileRequestBodyUsageField) o;
40
    return Objects.equals(unit, casted.unit) && Objects.equals(value, casted.value);
×
41
  }
42

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

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

NEW
61
  public static class Builder {
×
62

63
    protected String unit;
64

65
    protected Double value;
66

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

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

77
    public UpdateAllSkillCardsOnFileRequestBodyUsageField build() {
78
      return new UpdateAllSkillCardsOnFileRequestBodyUsageField(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