• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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/groups/GroupsOrderField.java
1
package com.box.sdkgen.schemas.groups;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class GroupsOrderField extends SerializableObject {
13

14
  /** The field to order by. */
15
  protected String by;
16

17
  /** The direction to order by, either ascending or descending. */
18
  @JsonDeserialize(using = GroupsOrderDirectionField.GroupsOrderDirectionFieldDeserializer.class)
19
  @JsonSerialize(using = GroupsOrderDirectionField.GroupsOrderDirectionFieldSerializer.class)
20
  protected EnumWrapper<GroupsOrderDirectionField> direction;
21

22
  public GroupsOrderField() {
23
    super();
×
24
  }
×
25

26
  protected GroupsOrderField(Builder builder) {
27
    super();
×
28
    this.by = builder.by;
×
29
    this.direction = builder.direction;
×
30
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
31
  }
×
32

33
  public String getBy() {
34
    return by;
×
35
  }
36

37
  public EnumWrapper<GroupsOrderDirectionField> getDirection() {
38
    return direction;
×
39
  }
40

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

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

58
  @Override
59
  public String toString() {
60
    return "GroupsOrderField{" + "by='" + by + '\'' + ", " + "direction='" + direction + '\'' + "}";
×
61
  }
62

63
  public static class Builder extends NullableFieldTracker {
×
64

65
    protected String by;
66

67
    protected EnumWrapper<GroupsOrderDirectionField> direction;
68

69
    public Builder by(String by) {
70
      this.by = by;
×
71
      return this;
×
72
    }
73

74
    public Builder direction(GroupsOrderDirectionField direction) {
75
      this.direction = new EnumWrapper<GroupsOrderDirectionField>(direction);
×
76
      return this;
×
77
    }
78

79
    public Builder direction(EnumWrapper<GroupsOrderDirectionField> direction) {
80
      this.direction = direction;
×
81
      return this;
×
82
    }
83

84
    public GroupsOrderField build() {
85
      return new GroupsOrderField(this);
×
86
    }
87
  }
88
}
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