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

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

9
public class Webhooks extends SerializableObject {
10

11
  protected Long limit;
12

13
  @JsonProperty("next_marker")
14
  protected String nextMarker;
15

16
  @JsonProperty("prev_marker")
17
  protected String prevMarker;
18

19
  protected List<WebhookMini> entries;
20

21
  public Webhooks() {
22
    super();
1✔
23
  }
1✔
24

25
  protected Webhooks(Builder builder) {
26
    super();
×
27
    this.limit = builder.limit;
×
28
    this.nextMarker = builder.nextMarker;
×
29
    this.prevMarker = builder.prevMarker;
×
30
    this.entries = builder.entries;
×
31
  }
×
32

33
  public Long getLimit() {
34
    return limit;
×
35
  }
36

37
  public String getNextMarker() {
38
    return nextMarker;
×
39
  }
40

41
  public String getPrevMarker() {
42
    return prevMarker;
×
43
  }
44

45
  public List<WebhookMini> getEntries() {
46
    return entries;
1✔
47
  }
48

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

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

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

NEW
90
  public static class Builder {
×
91

92
    protected Long limit;
93

94
    protected String nextMarker;
95

96
    protected String prevMarker;
97

98
    protected List<WebhookMini> entries;
99

100
    public Builder limit(Long limit) {
101
      this.limit = limit;
×
102
      return this;
×
103
    }
104

105
    public Builder nextMarker(String nextMarker) {
106
      this.nextMarker = nextMarker;
×
107
      return this;
×
108
    }
109

110
    public Builder prevMarker(String prevMarker) {
111
      this.prevMarker = prevMarker;
×
112
      return this;
×
113
    }
114

115
    public Builder entries(List<WebhookMini> entries) {
116
      this.entries = entries;
×
117
      return this;
×
118
    }
119

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