• 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/comments/CommentsOrderField.java
1
package com.box.sdkgen.schemas.comments;
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 CommentsOrderField extends SerializableObject {
10

11
  protected String by;
12

13
  @JsonDeserialize(
14
      using = CommentsOrderDirectionField.CommentsOrderDirectionFieldDeserializer.class)
15
  @JsonSerialize(using = CommentsOrderDirectionField.CommentsOrderDirectionFieldSerializer.class)
16
  protected EnumWrapper<CommentsOrderDirectionField> direction;
17

18
  public CommentsOrderField() {
19
    super();
×
20
  }
×
21

22
  protected CommentsOrderField(Builder builder) {
23
    super();
×
24
    this.by = builder.by;
×
25
    this.direction = builder.direction;
×
26
  }
×
27

28
  public String getBy() {
29
    return by;
×
30
  }
31

32
  public EnumWrapper<CommentsOrderDirectionField> getDirection() {
33
    return direction;
×
34
  }
35

36
  @Override
37
  public boolean equals(Object o) {
38
    if (this == o) {
×
39
      return true;
×
40
    }
41
    if (o == null || getClass() != o.getClass()) {
×
42
      return false;
×
43
    }
44
    CommentsOrderField casted = (CommentsOrderField) o;
×
45
    return Objects.equals(by, casted.by) && Objects.equals(direction, casted.direction);
×
46
  }
47

48
  @Override
49
  public int hashCode() {
50
    return Objects.hash(by, direction);
×
51
  }
52

53
  @Override
54
  public String toString() {
55
    return "CommentsOrderField{"
×
56
        + "by='"
57
        + by
58
        + '\''
59
        + ", "
60
        + "direction='"
61
        + direction
62
        + '\''
63
        + "}";
64
  }
65

NEW
66
  public static class Builder {
×
67

68
    protected String by;
69

70
    protected EnumWrapper<CommentsOrderDirectionField> direction;
71

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

77
    public Builder direction(CommentsOrderDirectionField direction) {
78
      this.direction = new EnumWrapper<CommentsOrderDirectionField>(direction);
×
79
      return this;
×
80
    }
81

82
    public Builder direction(EnumWrapper<CommentsOrderDirectionField> direction) {
83
      this.direction = direction;
×
84
      return this;
×
85
    }
86

87
    public CommentsOrderField build() {
88
      return new CommentsOrderField(this);
×
89
    }
90
  }
91
}
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