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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

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

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

11.43
/src/main/java/com/box/sdkgen/schemas/foldermini/FolderMini.java
1
package com.box.sdkgen.schemas.foldermini;
2

3
import com.box.sdkgen.schemas.folderbase.FolderBase;
4
import com.box.sdkgen.schemas.folderbase.FolderBaseTypeField;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Objects;
9

10
@JsonFilter("nullablePropertyFilter")
11
public class FolderMini extends FolderBase {
12

13
  @JsonProperty("sequence_id")
14
  protected String sequenceId;
15

16
  protected String name;
17

18
  public FolderMini(@JsonProperty("id") String id) {
19
    super(id);
1✔
20
  }
1✔
21

22
  protected FolderMini(Builder builder) {
23
    super(builder);
×
24
    this.sequenceId = builder.sequenceId;
×
UNCOV
25
    this.name = builder.name;
×
UNCOV
26
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
27
  }
×
28

29
  public String getSequenceId() {
30
    return sequenceId;
1✔
31
  }
32

33
  public String getName() {
34
    return name;
1✔
35
  }
36

37
  @Override
38
  public boolean equals(Object o) {
39
    if (this == o) {
×
40
      return true;
×
41
    }
42
    if (o == null || getClass() != o.getClass()) {
×
43
      return false;
×
44
    }
45
    FolderMini casted = (FolderMini) o;
×
46
    return Objects.equals(id, casted.id)
×
47
        && Objects.equals(etag, casted.etag)
×
UNCOV
48
        && Objects.equals(type, casted.type)
×
UNCOV
49
        && Objects.equals(sequenceId, casted.sequenceId)
×
UNCOV
50
        && Objects.equals(name, casted.name);
×
51
  }
52

53
  @Override
54
  public int hashCode() {
UNCOV
55
    return Objects.hash(id, etag, type, sequenceId, name);
×
56
  }
57

58
  @Override
59
  public String toString() {
UNCOV
60
    return "FolderMini{"
×
61
        + "id='"
62
        + id
63
        + '\''
64
        + ", "
65
        + "etag='"
66
        + etag
67
        + '\''
68
        + ", "
69
        + "type='"
70
        + type
71
        + '\''
72
        + ", "
73
        + "sequenceId='"
74
        + sequenceId
75
        + '\''
76
        + ", "
77
        + "name='"
78
        + name
79
        + '\''
80
        + "}";
81
  }
82

83
  public static class Builder extends FolderBase.Builder {
84

85
    protected String sequenceId;
86

87
    protected String name;
88

89
    public Builder(String id) {
UNCOV
90
      super(id);
×
91
    }
×
92

93
    public Builder sequenceId(String sequenceId) {
UNCOV
94
      this.sequenceId = sequenceId;
×
UNCOV
95
      return this;
×
96
    }
97

98
    public Builder name(String name) {
UNCOV
99
      this.name = name;
×
UNCOV
100
      return this;
×
101
    }
102

103
    @Override
104
    public Builder etag(String etag) {
UNCOV
105
      this.etag = etag;
×
UNCOV
106
      this.markNullableFieldAsSet("etag");
×
UNCOV
107
      return this;
×
108
    }
109

110
    @Override
111
    public Builder type(FolderBaseTypeField type) {
UNCOV
112
      this.type = new EnumWrapper<FolderBaseTypeField>(type);
×
UNCOV
113
      return this;
×
114
    }
115

116
    @Override
117
    public Builder type(EnumWrapper<FolderBaseTypeField> type) {
UNCOV
118
      this.type = type;
×
119
      return this;
×
120
    }
121

122
    public FolderMini build() {
UNCOV
123
      return new FolderMini(this);
×
124
    }
125
  }
126
}
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