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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

68 of 82 new or added lines in 2 files covered. (82.93%)

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

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.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
  protected String by;
15

16
  @JsonDeserialize(
17
      using = CommentsOrderDirectionField.CommentsOrderDirectionFieldDeserializer.class)
18
  @JsonSerialize(using = CommentsOrderDirectionField.CommentsOrderDirectionFieldSerializer.class)
19
  protected EnumWrapper<CommentsOrderDirectionField> direction;
20

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

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

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

36
  public EnumWrapper<CommentsOrderDirectionField> getDirection() {
UNCOV
37
    return direction;
×
38
  }
39

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

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

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

UNCOV
70
  public static class Builder extends NullableFieldTracker {
×
71

72
    protected String by;
73

74
    protected EnumWrapper<CommentsOrderDirectionField> direction;
75

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

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

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

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