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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

21.62
/src/main/java/com/box/sdkgen/managers/folders/GetFolderItemsQueryParams.java
1
package com.box.sdkgen.managers.trasheditems;
2

3
import com.box.sdkgen.serialization.json.EnumWrapper;
4
import java.util.List;
5

6
public class GetTrashedItemsQueryParams {
7

8
  public List<String> fields;
9

10
  public Long limit;
11

12
  public Long offset;
13

14
  public Boolean usemarker;
15

16
  public String marker;
17

18
  public EnumWrapper<GetTrashedItemsQueryParamsDirectionField> direction;
19

20
  public EnumWrapper<GetTrashedItemsQueryParamsSortField> sort;
21

22
  public GetTrashedItemsQueryParams() {}
1✔
23

NEW
24
  protected GetTrashedItemsQueryParams(Builder builder) {
×
25
    this.fields = builder.fields;
×
26
    this.limit = builder.limit;
×
27
    this.offset = builder.offset;
×
28
    this.usemarker = builder.usemarker;
×
29
    this.marker = builder.marker;
×
30
    this.direction = builder.direction;
×
31
    this.sort = builder.sort;
×
32
  }
×
33

34
  public List<String> getFields() {
35
    return fields;
1✔
36
  }
37

38
  public Long getLimit() {
39
    return limit;
1✔
40
  }
41

42
  public Long getOffset() {
43
    return offset;
1✔
44
  }
45

46
  public Boolean getUsemarker() {
47
    return usemarker;
1✔
48
  }
49

50
  public String getMarker() {
51
    return marker;
1✔
52
  }
53

54
  public EnumWrapper<GetTrashedItemsQueryParamsDirectionField> getDirection() {
55
    return direction;
1✔
56
  }
57

58
  public EnumWrapper<GetTrashedItemsQueryParamsSortField> getSort() {
59
    return sort;
1✔
60
  }
61

NEW
62
  public static class Builder {
×
63

64
    protected List<String> fields;
65

66
    protected Long limit;
67

68
    protected Long offset;
69

70
    protected Boolean usemarker;
71

72
    protected String marker;
73

74
    protected EnumWrapper<GetTrashedItemsQueryParamsDirectionField> direction;
75

76
    protected EnumWrapper<GetTrashedItemsQueryParamsSortField> sort;
77

78
    public Builder fields(List<String> fields) {
79
      this.fields = fields;
×
80
      return this;
×
81
    }
82

83
    public Builder limit(Long limit) {
84
      this.limit = limit;
×
85
      return this;
×
86
    }
87

88
    public Builder offset(Long offset) {
89
      this.offset = offset;
×
90
      return this;
×
91
    }
92

93
    public Builder usemarker(Boolean usemarker) {
94
      this.usemarker = usemarker;
×
95
      return this;
×
96
    }
97

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

103
    public Builder direction(GetTrashedItemsQueryParamsDirectionField direction) {
UNCOV
104
      this.direction = new EnumWrapper<GetTrashedItemsQueryParamsDirectionField>(direction);
×
105
      return this;
×
106
    }
107

108
    public Builder direction(EnumWrapper<GetTrashedItemsQueryParamsDirectionField> direction) {
UNCOV
109
      this.direction = direction;
×
110
      return this;
×
111
    }
112

113
    public Builder sort(GetTrashedItemsQueryParamsSortField sort) {
114
      this.sort = new EnumWrapper<GetTrashedItemsQueryParamsSortField>(sort);
×
115
      return this;
×
116
    }
117

118
    public Builder sort(EnumWrapper<GetTrashedItemsQueryParamsSortField> sort) {
UNCOV
119
      this.sort = sort;
×
120
      return this;
×
121
    }
122

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