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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

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

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

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/users/UsersOrderField.java
1
package com.box.sdkgen.schemas.users;
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 UsersOrderField extends SerializableObject {
13

14
  protected String by;
15

16
  @JsonDeserialize(using = UsersOrderDirectionField.UsersOrderDirectionFieldDeserializer.class)
17
  @JsonSerialize(using = UsersOrderDirectionField.UsersOrderDirectionFieldSerializer.class)
18
  protected EnumWrapper<UsersOrderDirectionField> direction;
19

20
  public UsersOrderField() {
UNCOV
21
    super();
×
22
  }
×
23

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

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

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

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

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

56
  @Override
57
  public String toString() {
UNCOV
58
    return "UsersOrderField{" + "by='" + by + '\'' + ", " + "direction='" + direction + '\'' + "}";
×
59
  }
60

UNCOV
61
  public static class Builder extends NullableFieldTracker {
×
62

63
    protected String by;
64

65
    protected EnumWrapper<UsersOrderDirectionField> direction;
66

67
    public Builder by(String by) {
UNCOV
68
      this.by = by;
×
69
      return this;
×
70
    }
71

72
    public Builder direction(UsersOrderDirectionField direction) {
UNCOV
73
      this.direction = new EnumWrapper<UsersOrderDirectionField>(direction);
×
74
      return this;
×
75
    }
76

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

82
    public UsersOrderField build() {
UNCOV
83
      return new UsersOrderField(this);
×
84
    }
85
  }
86
}
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