• 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/schemas/filefull/FileFullClassificationField.java
1
package com.box.sdkgen.schemas.filefull;
2

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

6
public class FileFullClassificationField extends SerializableObject {
7

8
  protected String name;
9

10
  protected String definition;
11

12
  protected String color;
13

14
  public FileFullClassificationField() {
15
    super();
×
16
  }
×
17

18
  protected FileFullClassificationField(Builder builder) {
19
    super();
×
20
    this.name = builder.name;
×
21
    this.definition = builder.definition;
×
22
    this.color = builder.color;
×
23
  }
×
24

25
  public String getName() {
26
    return name;
×
27
  }
28

29
  public String getDefinition() {
30
    return definition;
×
31
  }
32

33
  public String getColor() {
34
    return color;
×
35
  }
36

37
  @Override
38
  public boolean equals(Object o) {
39
    if (this == o) {
×
40
      return true;
×
41
    }
42
    if (o == null || getClass() != o.getClass()) {
×
43
      return false;
×
44
    }
45
    FileFullClassificationField casted = (FileFullClassificationField) o;
×
46
    return Objects.equals(name, casted.name)
×
47
        && Objects.equals(definition, casted.definition)
×
48
        && Objects.equals(color, casted.color);
×
49
  }
50

51
  @Override
52
  public int hashCode() {
53
    return Objects.hash(name, definition, color);
×
54
  }
55

56
  @Override
57
  public String toString() {
58
    return "FileFullClassificationField{"
×
59
        + "name='"
60
        + name
61
        + '\''
62
        + ", "
63
        + "definition='"
64
        + definition
65
        + '\''
66
        + ", "
67
        + "color='"
68
        + color
69
        + '\''
70
        + "}";
71
  }
72

NEW
73
  public static class Builder {
×
74

75
    protected String name;
76

77
    protected String definition;
78

79
    protected String color;
80

81
    public Builder name(String name) {
82
      this.name = name;
×
83
      return this;
×
84
    }
85

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

91
    public Builder color(String color) {
92
      this.color = color;
×
93
      return this;
×
94
    }
95

96
    public FileFullClassificationField build() {
97
      return new FileFullClassificationField(this);
×
98
    }
99
  }
100
}
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