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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

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/metadataqueryindex/MetadataQueryIndexFieldsField.java
1
package com.box.sdkgen.schemas.metadataqueryindex;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.Objects;
9

10
public class MetadataQueryIndexFieldsField extends SerializableObject {
11

12
  protected String key;
13

14
  @JsonDeserialize(
15
      using =
16
          MetadataQueryIndexFieldsSortDirectionField
17
              .MetadataQueryIndexFieldsSortDirectionFieldDeserializer.class)
18
  @JsonSerialize(
19
      using =
20
          MetadataQueryIndexFieldsSortDirectionField
21
              .MetadataQueryIndexFieldsSortDirectionFieldSerializer.class)
22
  @JsonProperty("sort_direction")
23
  protected EnumWrapper<MetadataQueryIndexFieldsSortDirectionField> sortDirection;
24

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

29
  protected MetadataQueryIndexFieldsField(Builder builder) {
30
    super();
×
31
    this.key = builder.key;
×
32
    this.sortDirection = builder.sortDirection;
×
33
  }
×
34

35
  public String getKey() {
36
    return key;
×
37
  }
38

39
  public EnumWrapper<MetadataQueryIndexFieldsSortDirectionField> getSortDirection() {
40
    return sortDirection;
×
41
  }
42

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

55
  @Override
56
  public int hashCode() {
57
    return Objects.hash(key, sortDirection);
×
58
  }
59

60
  @Override
61
  public String toString() {
62
    return "MetadataQueryIndexFieldsField{"
×
63
        + "key='"
64
        + key
65
        + '\''
66
        + ", "
67
        + "sortDirection='"
68
        + sortDirection
69
        + '\''
70
        + "}";
71
  }
72

NEW
73
  public static class Builder {
×
74

75
    protected String key;
76

77
    protected EnumWrapper<MetadataQueryIndexFieldsSortDirectionField> sortDirection;
78

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

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

90
    public Builder sortDirection(
91
        EnumWrapper<MetadataQueryIndexFieldsSortDirectionField> sortDirection) {
92
      this.sortDirection = sortDirection;
×
93
      return this;
×
94
    }
95

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