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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

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

11820 existing lines in 631 files now uncovered.

16946 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/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
  @JsonProperty("field_key")
16
  protected String fieldKey;
17

18
  @JsonDeserialize(
19
      using =
20
          MetadataQueryOrderByDirectionField.MetadataQueryOrderByDirectionFieldDeserializer.class)
21
  @JsonSerialize(
22
      using = MetadataQueryOrderByDirectionField.MetadataQueryOrderByDirectionFieldSerializer.class)
23
  protected EnumWrapper<MetadataQueryOrderByDirectionField> direction;
24

25
  public MetadataQueryOrderByField() {
UNCOV
26
    super();
×
27
  }
×
28

29
  protected MetadataQueryOrderByField(Builder builder) {
30
    super();
×
UNCOV
31
    this.fieldKey = builder.fieldKey;
×
UNCOV
32
    this.direction = builder.direction;
×
33
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
34
  }
×
35

36
  public String getFieldKey() {
37
    return fieldKey;
×
38
  }
39

40
  public EnumWrapper<MetadataQueryOrderByDirectionField> getDirection() {
UNCOV
41
    return direction;
×
42
  }
43

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

56
  @Override
57
  public int hashCode() {
UNCOV
58
    return Objects.hash(fieldKey, direction);
×
59
  }
60

61
  @Override
62
  public String toString() {
UNCOV
63
    return "MetadataQueryOrderByField{"
×
64
        + "fieldKey='"
65
        + fieldKey
66
        + '\''
67
        + ", "
68
        + "direction='"
69
        + direction
70
        + '\''
71
        + "}";
72
  }
73

UNCOV
74
  public static class Builder extends NullableFieldTracker {
×
75

76
    protected String fieldKey;
77

78
    protected EnumWrapper<MetadataQueryOrderByDirectionField> direction;
79

80
    public Builder fieldKey(String fieldKey) {
UNCOV
81
      this.fieldKey = fieldKey;
×
82
      return this;
×
83
    }
84

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

90
    public Builder direction(EnumWrapper<MetadataQueryOrderByDirectionField> direction) {
UNCOV
91
      this.direction = direction;
×
92
      return this;
×
93
    }
94

95
    public MetadataQueryOrderByField build() {
UNCOV
96
      return new MetadataQueryOrderByField(this);
×
97
    }
98
  }
99
}
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