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

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

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

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

11
@JsonFilter("nullablePropertyFilter")
12
public class Events extends SerializableObject {
13

14
  @JsonProperty("chunk_size")
15
  protected Long chunkSize;
16

17
  @JsonProperty("next_stream_position")
18
  protected EventsNextStreamPositionField nextStreamPosition;
19

20
  protected List<Event> entries;
21

22
  public Events() {
23
    super();
1✔
24
  }
1✔
25

26
  protected Events(Builder builder) {
27
    super();
×
28
    this.chunkSize = builder.chunkSize;
×
UNCOV
29
    this.nextStreamPosition = builder.nextStreamPosition;
×
UNCOV
30
    this.entries = builder.entries;
×
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
32
  }
×
33

34
  public Long getChunkSize() {
35
    return chunkSize;
×
36
  }
37

38
  public EventsNextStreamPositionField getNextStreamPosition() {
UNCOV
39
    return nextStreamPosition;
×
40
  }
41

42
  public List<Event> getEntries() {
43
    return entries;
1✔
44
  }
45

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

60
  @Override
61
  public int hashCode() {
UNCOV
62
    return Objects.hash(chunkSize, nextStreamPosition, entries);
×
63
  }
64

65
  @Override
66
  public String toString() {
UNCOV
67
    return "Events{"
×
68
        + "chunkSize='"
69
        + chunkSize
70
        + '\''
71
        + ", "
72
        + "nextStreamPosition='"
73
        + nextStreamPosition
74
        + '\''
75
        + ", "
76
        + "entries='"
77
        + entries
78
        + '\''
79
        + "}";
80
  }
81

UNCOV
82
  public static class Builder extends NullableFieldTracker {
×
83

84
    protected Long chunkSize;
85

86
    protected EventsNextStreamPositionField nextStreamPosition;
87

88
    protected List<Event> entries;
89

90
    public Builder chunkSize(Long chunkSize) {
UNCOV
91
      this.chunkSize = chunkSize;
×
92
      return this;
×
93
    }
94

95
    public Builder nextStreamPosition(EventsNextStreamPositionField nextStreamPosition) {
UNCOV
96
      this.nextStreamPosition = nextStreamPosition;
×
97
      return this;
×
98
    }
99

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

105
    public Events build() {
UNCOV
106
      return new Events(this);
×
107
    }
108
  }
109
}
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