• 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/comments/CommentsOrderField.java
1
package com.box.sdkgen.schemas.comments;
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 CommentsOrderField 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(
19
      using = CommentsOrderDirectionField.CommentsOrderDirectionFieldDeserializer.class)
20
  @JsonSerialize(using = CommentsOrderDirectionField.CommentsOrderDirectionFieldSerializer.class)
21
  protected EnumWrapper<CommentsOrderDirectionField> direction;
22

23
  public CommentsOrderField() {
24
    super();
×
25
  }
×
26

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

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

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

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

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

59
  @Override
60
  public String toString() {
61
    return "CommentsOrderField{"
×
62
        + "by='"
63
        + by
64
        + '\''
65
        + ", "
66
        + "direction='"
67
        + direction
68
        + '\''
69
        + "}";
70
  }
71

72
  public static class Builder extends NullableFieldTracker {
×
73

74
    protected String by;
75

76
    protected EnumWrapper<CommentsOrderDirectionField> direction;
77

78
    public Builder by(String by) {
79
      this.by = by;
×
80
      return this;
×
81
    }
82

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

88
    public Builder direction(EnumWrapper<CommentsOrderDirectionField> direction) {
89
      this.direction = direction;
×
90
      return this;
×
91
    }
92

93
    public CommentsOrderField build() {
94
      return new CommentsOrderField(this);
×
95
    }
96
  }
97
}
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