• 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

0.0
/src/main/java/com/box/sdkgen/schemas/filefull/FileFullPermissionsField.java
1
package com.box.sdkgen.schemas.filefull;
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 FileFullPermissionsField extends SerializableObject {
10

11
  @JsonProperty("can_delete")
12
  protected final boolean canDelete;
13

14
  @JsonProperty("can_download")
15
  protected final boolean canDownload;
16

17
  @JsonProperty("can_invite_collaborator")
18
  protected final boolean canInviteCollaborator;
19

20
  @JsonProperty("can_rename")
21
  protected final boolean canRename;
22

23
  @JsonProperty("can_set_share_access")
24
  protected final boolean canSetShareAccess;
25

26
  @JsonProperty("can_share")
27
  protected final boolean canShare;
28

29
  @JsonProperty("can_annotate")
30
  protected final boolean canAnnotate;
31

32
  @JsonProperty("can_comment")
33
  protected final boolean canComment;
34

35
  @JsonProperty("can_preview")
36
  protected final boolean canPreview;
37

38
  @JsonProperty("can_upload")
39
  protected final boolean canUpload;
40

41
  @JsonProperty("can_view_annotations_all")
42
  protected final boolean canViewAnnotationsAll;
43

44
  @JsonProperty("can_view_annotations_self")
45
  protected final boolean canViewAnnotationsSelf;
46

47
  public FileFullPermissionsField(
48
      @JsonProperty("can_delete") boolean canDelete,
49
      @JsonProperty("can_download") boolean canDownload,
50
      @JsonProperty("can_invite_collaborator") boolean canInviteCollaborator,
51
      @JsonProperty("can_rename") boolean canRename,
52
      @JsonProperty("can_set_share_access") boolean canSetShareAccess,
53
      @JsonProperty("can_share") boolean canShare,
54
      @JsonProperty("can_annotate") boolean canAnnotate,
55
      @JsonProperty("can_comment") boolean canComment,
56
      @JsonProperty("can_preview") boolean canPreview,
57
      @JsonProperty("can_upload") boolean canUpload,
58
      @JsonProperty("can_view_annotations_all") boolean canViewAnnotationsAll,
59
      @JsonProperty("can_view_annotations_self") boolean canViewAnnotationsSelf) {
60
    super();
×
61
    this.canDelete = canDelete;
×
62
    this.canDownload = canDownload;
×
63
    this.canInviteCollaborator = canInviteCollaborator;
×
64
    this.canRename = canRename;
×
65
    this.canSetShareAccess = canSetShareAccess;
×
66
    this.canShare = canShare;
×
67
    this.canAnnotate = canAnnotate;
×
68
    this.canComment = canComment;
×
69
    this.canPreview = canPreview;
×
70
    this.canUpload = canUpload;
×
71
    this.canViewAnnotationsAll = canViewAnnotationsAll;
×
UNCOV
72
    this.canViewAnnotationsSelf = canViewAnnotationsSelf;
×
UNCOV
73
  }
×
74

75
  public boolean getCanDelete() {
UNCOV
76
    return canDelete;
×
77
  }
78

79
  public boolean getCanDownload() {
UNCOV
80
    return canDownload;
×
81
  }
82

83
  public boolean getCanInviteCollaborator() {
UNCOV
84
    return canInviteCollaborator;
×
85
  }
86

87
  public boolean getCanRename() {
UNCOV
88
    return canRename;
×
89
  }
90

91
  public boolean getCanSetShareAccess() {
UNCOV
92
    return canSetShareAccess;
×
93
  }
94

95
  public boolean getCanShare() {
UNCOV
96
    return canShare;
×
97
  }
98

99
  public boolean getCanAnnotate() {
UNCOV
100
    return canAnnotate;
×
101
  }
102

103
  public boolean getCanComment() {
UNCOV
104
    return canComment;
×
105
  }
106

107
  public boolean getCanPreview() {
UNCOV
108
    return canPreview;
×
109
  }
110

111
  public boolean getCanUpload() {
UNCOV
112
    return canUpload;
×
113
  }
114

115
  public boolean getCanViewAnnotationsAll() {
UNCOV
116
    return canViewAnnotationsAll;
×
117
  }
118

119
  public boolean getCanViewAnnotationsSelf() {
UNCOV
120
    return canViewAnnotationsSelf;
×
121
  }
122

123
  @Override
124
  public boolean equals(Object o) {
UNCOV
125
    if (this == o) {
×
126
      return true;
×
127
    }
UNCOV
128
    if (o == null || getClass() != o.getClass()) {
×
129
      return false;
×
130
    }
131
    FileFullPermissionsField casted = (FileFullPermissionsField) o;
×
132
    return Objects.equals(canDelete, casted.canDelete)
×
133
        && Objects.equals(canDownload, casted.canDownload)
×
134
        && Objects.equals(canInviteCollaborator, casted.canInviteCollaborator)
×
135
        && Objects.equals(canRename, casted.canRename)
×
136
        && Objects.equals(canSetShareAccess, casted.canSetShareAccess)
×
137
        && Objects.equals(canShare, casted.canShare)
×
138
        && Objects.equals(canAnnotate, casted.canAnnotate)
×
139
        && Objects.equals(canComment, casted.canComment)
×
140
        && Objects.equals(canPreview, casted.canPreview)
×
141
        && Objects.equals(canUpload, casted.canUpload)
×
UNCOV
142
        && Objects.equals(canViewAnnotationsAll, casted.canViewAnnotationsAll)
×
UNCOV
143
        && Objects.equals(canViewAnnotationsSelf, casted.canViewAnnotationsSelf);
×
144
  }
145

146
  @Override
147
  public int hashCode() {
148
    return Objects.hash(
×
149
        canDelete,
×
150
        canDownload,
×
151
        canInviteCollaborator,
×
152
        canRename,
×
153
        canSetShareAccess,
×
154
        canShare,
×
155
        canAnnotate,
×
156
        canComment,
×
157
        canPreview,
×
158
        canUpload,
×
UNCOV
159
        canViewAnnotationsAll,
×
UNCOV
160
        canViewAnnotationsSelf);
×
161
  }
162

163
  @Override
164
  public String toString() {
UNCOV
165
    return "FileFullPermissionsField{"
×
166
        + "canDelete='"
167
        + canDelete
168
        + '\''
169
        + ", "
170
        + "canDownload='"
171
        + canDownload
172
        + '\''
173
        + ", "
174
        + "canInviteCollaborator='"
175
        + canInviteCollaborator
176
        + '\''
177
        + ", "
178
        + "canRename='"
179
        + canRename
180
        + '\''
181
        + ", "
182
        + "canSetShareAccess='"
183
        + canSetShareAccess
184
        + '\''
185
        + ", "
186
        + "canShare='"
187
        + canShare
188
        + '\''
189
        + ", "
190
        + "canAnnotate='"
191
        + canAnnotate
192
        + '\''
193
        + ", "
194
        + "canComment='"
195
        + canComment
196
        + '\''
197
        + ", "
198
        + "canPreview='"
199
        + canPreview
200
        + '\''
201
        + ", "
202
        + "canUpload='"
203
        + canUpload
204
        + '\''
205
        + ", "
206
        + "canViewAnnotationsAll='"
207
        + canViewAnnotationsAll
208
        + '\''
209
        + ", "
210
        + "canViewAnnotationsSelf='"
211
        + canViewAnnotationsSelf
212
        + '\''
213
        + "}";
214
  }
215
}
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