• 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

9.09
/src/main/java/com/box/sdkgen/schemas/devicepinners/DevicePinners.java
1
package com.box.sdkgen.schemas.devicepinners;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.devicepinner.DevicePinner;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.List;
7
import java.util.Objects;
8

9
public class DevicePinners extends SerializableObject {
10

11
  protected List<DevicePinner> entries;
12

13
  protected Long limit;
14

15
  @JsonProperty("next_marker")
16
  protected Long nextMarker;
17

18
  protected List<DevicePinnersOrderField> order;
19

20
  public DevicePinners() {
21
    super();
1✔
22
  }
1✔
23

24
  protected DevicePinners(Builder builder) {
25
    super();
×
26
    this.entries = builder.entries;
×
27
    this.limit = builder.limit;
×
28
    this.nextMarker = builder.nextMarker;
×
29
    this.order = builder.order;
×
30
  }
×
31

32
  public List<DevicePinner> getEntries() {
33
    return entries;
1✔
34
  }
35

36
  public Long getLimit() {
37
    return limit;
×
38
  }
39

40
  public Long getNextMarker() {
41
    return nextMarker;
×
42
  }
43

44
  public List<DevicePinnersOrderField> getOrder() {
45
    return order;
×
46
  }
47

48
  @Override
49
  public boolean equals(Object o) {
50
    if (this == o) {
×
51
      return true;
×
52
    }
53
    if (o == null || getClass() != o.getClass()) {
×
54
      return false;
×
55
    }
56
    DevicePinners casted = (DevicePinners) o;
×
57
    return Objects.equals(entries, casted.entries)
×
58
        && Objects.equals(limit, casted.limit)
×
59
        && Objects.equals(nextMarker, casted.nextMarker)
×
60
        && Objects.equals(order, casted.order);
×
61
  }
62

63
  @Override
64
  public int hashCode() {
65
    return Objects.hash(entries, limit, nextMarker, order);
×
66
  }
67

68
  @Override
69
  public String toString() {
70
    return "DevicePinners{"
×
71
        + "entries='"
72
        + entries
73
        + '\''
74
        + ", "
75
        + "limit='"
76
        + limit
77
        + '\''
78
        + ", "
79
        + "nextMarker='"
80
        + nextMarker
81
        + '\''
82
        + ", "
83
        + "order='"
84
        + order
85
        + '\''
86
        + "}";
87
  }
88

NEW
89
  public static class Builder {
×
90

91
    protected List<DevicePinner> entries;
92

93
    protected Long limit;
94

95
    protected Long nextMarker;
96

97
    protected List<DevicePinnersOrderField> order;
98

99
    public Builder entries(List<DevicePinner> entries) {
100
      this.entries = entries;
×
101
      return this;
×
102
    }
103

104
    public Builder limit(Long limit) {
105
      this.limit = limit;
×
106
      return this;
×
107
    }
108

109
    public Builder nextMarker(Long nextMarker) {
110
      this.nextMarker = nextMarker;
×
111
      return this;
×
112
    }
113

114
    public Builder order(List<DevicePinnersOrderField> order) {
115
      this.order = order;
×
116
      return this;
×
117
    }
118

119
    public DevicePinners build() {
120
      return new DevicePinners(this);
×
121
    }
122
  }
123
}
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