• 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/itemsoffsetpaginated/ItemsOffsetPaginatedOrderField.java
1
package com.box.sdkgen.schemas.itemsoffsetpaginated;
2

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

9
public class ItemsOffsetPaginatedOrderField extends SerializableObject {
10

11
  protected String by;
12

13
  @JsonDeserialize(
14
      using =
15
          ItemsOffsetPaginatedOrderDirectionField
16
              .ItemsOffsetPaginatedOrderDirectionFieldDeserializer.class)
17
  @JsonSerialize(
18
      using =
19
          ItemsOffsetPaginatedOrderDirectionField.ItemsOffsetPaginatedOrderDirectionFieldSerializer
20
              .class)
21
  protected EnumWrapper<ItemsOffsetPaginatedOrderDirectionField> direction;
22

23
  public ItemsOffsetPaginatedOrderField() {
24
    super();
×
25
  }
×
26

27
  protected ItemsOffsetPaginatedOrderField(Builder builder) {
28
    super();
×
29
    this.by = builder.by;
×
30
    this.direction = builder.direction;
×
31
  }
×
32

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

37
  public EnumWrapper<ItemsOffsetPaginatedOrderDirectionField> getDirection() {
38
    return direction;
×
39
  }
40

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

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

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

NEW
71
  public static class Builder {
×
72

73
    protected String by;
74

75
    protected EnumWrapper<ItemsOffsetPaginatedOrderDirectionField> direction;
76

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

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

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

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