• 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

27.78
/src/main/java/com/box/sdkgen/schemas/weblink/WebLinkSharedLinkPermissionsField.java
1
package com.box.sdkgen.schemas.file;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonFilter;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.Objects;
7

8
@JsonFilter("nullablePropertyFilter")
9
public class FileSharedLinkPermissionsField extends SerializableObject {
10

11
  @JsonProperty("can_download")
12
  protected final boolean canDownload;
13

14
  @JsonProperty("can_preview")
15
  protected final boolean canPreview;
16

17
  @JsonProperty("can_edit")
18
  protected final boolean canEdit;
19

20
  public FileSharedLinkPermissionsField(
21
      @JsonProperty("can_download") boolean canDownload,
22
      @JsonProperty("can_preview") boolean canPreview,
23
      @JsonProperty("can_edit") boolean canEdit) {
24
    super();
1✔
25
    this.canDownload = canDownload;
1✔
26
    this.canPreview = canPreview;
1✔
27
    this.canEdit = canEdit;
1✔
28
  }
1✔
29

30
  public boolean getCanDownload() {
UNCOV
31
    return canDownload;
×
32
  }
33

34
  public boolean getCanPreview() {
UNCOV
35
    return canPreview;
×
36
  }
37

38
  public boolean getCanEdit() {
UNCOV
39
    return canEdit;
×
40
  }
41

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

56
  @Override
57
  public int hashCode() {
UNCOV
58
    return Objects.hash(canDownload, canPreview, canEdit);
×
59
  }
60

61
  @Override
62
  public String toString() {
UNCOV
63
    return "FileSharedLinkPermissionsField{"
×
64
        + "canDownload='"
65
        + canDownload
66
        + '\''
67
        + ", "
68
        + "canPreview='"
69
        + canPreview
70
        + '\''
71
        + ", "
72
        + "canEdit='"
73
        + canEdit
74
        + '\''
75
        + "}";
76
  }
77
}
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