• 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/metadataquery/MetadataQueryOrderByField.java
1
package com.box.sdkgen.schemas.metadataquery;
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.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class MetadataQueryOrderByField extends SerializableObject {
14

15
  /**
16
   * The metadata template field to order by.
17
   *
18
   * <p>The `field_key` represents the `key` value of a field from the metadata template being
19
   * searched for.
20
   */
21
  @JsonProperty("field_key")
22
  protected String fieldKey;
23

24
  /**
25
   * The direction to order by, either ascending or descending.
26
   *
27
   * <p>The `ordering` direction must be the same for each item in the array.
28
   */
29
  @JsonDeserialize(
30
      using =
31
          MetadataQueryOrderByDirectionField.MetadataQueryOrderByDirectionFieldDeserializer.class)
32
  @JsonSerialize(
33
      using = MetadataQueryOrderByDirectionField.MetadataQueryOrderByDirectionFieldSerializer.class)
34
  protected EnumWrapper<MetadataQueryOrderByDirectionField> direction;
35

36
  public MetadataQueryOrderByField() {
37
    super();
×
38
  }
×
39

40
  protected MetadataQueryOrderByField(Builder builder) {
41
    super();
×
42
    this.fieldKey = builder.fieldKey;
×
43
    this.direction = builder.direction;
×
44
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
45
  }
×
46

47
  public String getFieldKey() {
48
    return fieldKey;
×
49
  }
50

51
  public EnumWrapper<MetadataQueryOrderByDirectionField> getDirection() {
52
    return direction;
×
53
  }
54

55
  @Override
56
  public boolean equals(Object o) {
57
    if (this == o) {
×
58
      return true;
×
59
    }
60
    if (o == null || getClass() != o.getClass()) {
×
61
      return false;
×
62
    }
63
    MetadataQueryOrderByField casted = (MetadataQueryOrderByField) o;
×
64
    return Objects.equals(fieldKey, casted.fieldKey) && Objects.equals(direction, casted.direction);
×
65
  }
66

67
  @Override
68
  public int hashCode() {
69
    return Objects.hash(fieldKey, direction);
×
70
  }
71

72
  @Override
73
  public String toString() {
74
    return "MetadataQueryOrderByField{"
×
75
        + "fieldKey='"
76
        + fieldKey
77
        + '\''
78
        + ", "
79
        + "direction='"
80
        + direction
81
        + '\''
82
        + "}";
83
  }
84

85
  public static class Builder extends NullableFieldTracker {
×
86

87
    protected String fieldKey;
88

89
    protected EnumWrapper<MetadataQueryOrderByDirectionField> direction;
90

91
    public Builder fieldKey(String fieldKey) {
92
      this.fieldKey = fieldKey;
×
93
      return this;
×
94
    }
95

96
    public Builder direction(MetadataQueryOrderByDirectionField direction) {
97
      this.direction = new EnumWrapper<MetadataQueryOrderByDirectionField>(direction);
×
98
      return this;
×
99
    }
100

101
    public Builder direction(EnumWrapper<MetadataQueryOrderByDirectionField> direction) {
102
      this.direction = direction;
×
103
      return this;
×
104
    }
105

106
    public MetadataQueryOrderByField build() {
107
      return new MetadataQueryOrderByField(this);
×
108
    }
109
  }
110
}
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