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

box / box-java-sdk / #6048

31 Dec 2025 02:32PM UTC coverage: 35.122% (-0.5%) from 35.647%
#6048

push

github

web-flow
test: Remove integration mappings tests (box/box-codegen#912) (#1671)

18719 of 53297 relevant lines covered (35.12%)

0.35 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/folderreference/FolderReference.java
1
package com.box.sdkgen.schemas.folderreference;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
/** Folder reference. */
13
@JsonFilter("nullablePropertyFilter")
14
public class FolderReference extends SerializableObject {
15

16
  /** The value will always be `folder`. */
17
  @JsonDeserialize(using = FolderReferenceTypeField.FolderReferenceTypeFieldDeserializer.class)
18
  @JsonSerialize(using = FolderReferenceTypeField.FolderReferenceTypeFieldSerializer.class)
19
  protected EnumWrapper<FolderReferenceTypeField> type;
20

21
  /** ID of the folder. */
22
  protected final String id;
23

24
  public FolderReference(@JsonProperty("id") String id) {
25
    super();
×
26
    this.id = id;
×
27
    this.type = new EnumWrapper<FolderReferenceTypeField>(FolderReferenceTypeField.FOLDER);
×
28
  }
×
29

30
  protected FolderReference(Builder builder) {
31
    super();
×
32
    this.type = builder.type;
×
33
    this.id = builder.id;
×
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
35
  }
×
36

37
  public EnumWrapper<FolderReferenceTypeField> getType() {
38
    return type;
×
39
  }
40

41
  public String getId() {
42
    return id;
×
43
  }
44

45
  @Override
46
  public boolean equals(Object o) {
47
    if (this == o) {
×
48
      return true;
×
49
    }
50
    if (o == null || getClass() != o.getClass()) {
×
51
      return false;
×
52
    }
53
    FolderReference casted = (FolderReference) o;
×
54
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
55
  }
56

57
  @Override
58
  public int hashCode() {
59
    return Objects.hash(type, id);
×
60
  }
61

62
  @Override
63
  public String toString() {
64
    return "FolderReference{" + "type='" + type + '\'' + ", " + "id='" + id + '\'' + "}";
×
65
  }
66

67
  public static class Builder extends NullableFieldTracker {
68

69
    protected EnumWrapper<FolderReferenceTypeField> type;
70

71
    protected final String id;
72

73
    public Builder(String id) {
74
      super();
×
75
      this.id = id;
×
76
      this.type = new EnumWrapper<FolderReferenceTypeField>(FolderReferenceTypeField.FOLDER);
×
77
    }
×
78

79
    public Builder type(FolderReferenceTypeField type) {
80
      this.type = new EnumWrapper<FolderReferenceTypeField>(type);
×
81
      return this;
×
82
    }
83

84
    public Builder type(EnumWrapper<FolderReferenceTypeField> type) {
85
      this.type = type;
×
86
      return this;
×
87
    }
88

89
    public FolderReference build() {
90
      return new FolderReference(this);
×
91
    }
92
  }
93
}
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