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

11
  protected String by;
12

13
  @JsonDeserialize(
14
      using =
15
          GroupMembershipsOrderDirectionField.GroupMembershipsOrderDirectionFieldDeserializer.class)
16
  @JsonSerialize(
17
      using =
18
          GroupMembershipsOrderDirectionField.GroupMembershipsOrderDirectionFieldSerializer.class)
19
  protected EnumWrapper<GroupMembershipsOrderDirectionField> direction;
20

21
  public GroupMembershipsOrderField() {
22
    super();
×
23
  }
×
24

25
  protected GroupMembershipsOrderField(Builder builder) {
26
    super();
×
27
    this.by = builder.by;
×
28
    this.direction = builder.direction;
×
29
  }
×
30

31
  public String getBy() {
32
    return by;
×
33
  }
34

35
  public EnumWrapper<GroupMembershipsOrderDirectionField> getDirection() {
36
    return direction;
×
37
  }
38

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

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

56
  @Override
57
  public String toString() {
58
    return "GroupMembershipsOrderField{"
×
59
        + "by='"
60
        + by
61
        + '\''
62
        + ", "
63
        + "direction='"
64
        + direction
65
        + '\''
66
        + "}";
67
  }
68

NEW
69
  public static class Builder {
×
70

71
    protected String by;
72

73
    protected EnumWrapper<GroupMembershipsOrderDirectionField> direction;
74

75
    public Builder by(String by) {
76
      this.by = by;
×
77
      return this;
×
78
    }
79

80
    public Builder direction(GroupMembershipsOrderDirectionField direction) {
UNCOV
81
      this.direction = new EnumWrapper<GroupMembershipsOrderDirectionField>(direction);
×
82
      return this;
×
83
    }
84

85
    public Builder direction(EnumWrapper<GroupMembershipsOrderDirectionField> direction) {
UNCOV
86
      this.direction = direction;
×
87
      return this;
×
88
    }
89

90
    public GroupMembershipsOrderField build() {
91
      return new GroupMembershipsOrderField(this);
×
92
    }
93
  }
94
}
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