• 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

10.71
/src/main/java/com/box/sdkgen/schemas/events/Events.java
1
package com.box.sdkgen.schemas.events;
2

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

9
public class Events extends SerializableObject {
10

11
  @JsonProperty("chunk_size")
12
  protected Long chunkSize;
13

14
  @JsonProperty("next_stream_position")
15
  protected EventsNextStreamPositionField nextStreamPosition;
16

17
  protected List<Event> entries;
18

19
  public Events() {
20
    super();
1✔
21
  }
1✔
22

23
  protected Events(Builder builder) {
24
    super();
×
25
    this.chunkSize = builder.chunkSize;
×
26
    this.nextStreamPosition = builder.nextStreamPosition;
×
27
    this.entries = builder.entries;
×
28
  }
×
29

30
  public Long getChunkSize() {
31
    return chunkSize;
×
32
  }
33

34
  public EventsNextStreamPositionField getNextStreamPosition() {
35
    return nextStreamPosition;
×
36
  }
37

38
  public List<Event> getEntries() {
39
    return entries;
1✔
40
  }
41

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

56
  @Override
57
  public int hashCode() {
58
    return Objects.hash(chunkSize, nextStreamPosition, entries);
×
59
  }
60

61
  @Override
62
  public String toString() {
63
    return "Events{"
×
64
        + "chunkSize='"
65
        + chunkSize
66
        + '\''
67
        + ", "
68
        + "nextStreamPosition='"
69
        + nextStreamPosition
70
        + '\''
71
        + ", "
72
        + "entries='"
73
        + entries
74
        + '\''
75
        + "}";
76
  }
77

NEW
78
  public static class Builder {
×
79

80
    protected Long chunkSize;
81

82
    protected EventsNextStreamPositionField nextStreamPosition;
83

84
    protected List<Event> entries;
85

86
    public Builder chunkSize(Long chunkSize) {
87
      this.chunkSize = chunkSize;
×
88
      return this;
×
89
    }
90

91
    public Builder nextStreamPosition(EventsNextStreamPositionField nextStreamPosition) {
92
      this.nextStreamPosition = nextStreamPosition;
×
93
      return this;
×
94
    }
95

96
    public Builder entries(List<Event> entries) {
97
      this.entries = entries;
×
98
      return this;
×
99
    }
100

101
    public Events build() {
102
      return new Events(this);
×
103
    }
104
  }
105
}
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