• 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

58.62
/src/main/java/com/box/sdkgen/managers/folders/GetFolderByIdQueryParams.java
1
package com.box.sdkgen.managers.folders;
2

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

6
public class GetFolderByIdQueryParams {
7

8
  public List<String> fields;
9

10
  public EnumWrapper<GetFolderByIdQueryParamsSortField> sort;
11

12
  public EnumWrapper<GetFolderByIdQueryParamsDirectionField> direction;
13

14
  public Long offset;
15

16
  public Long limit;
17

18
  public GetFolderByIdQueryParams() {}
1✔
19

20
  protected GetFolderByIdQueryParams(Builder builder) {
1✔
21
    this.fields = builder.fields;
1✔
22
    this.sort = builder.sort;
1✔
23
    this.direction = builder.direction;
1✔
24
    this.offset = builder.offset;
1✔
25
    this.limit = builder.limit;
1✔
26
  }
1✔
27

28
  public List<String> getFields() {
29
    return fields;
1✔
30
  }
31

32
  public EnumWrapper<GetFolderByIdQueryParamsSortField> getSort() {
33
    return sort;
1✔
34
  }
35

36
  public EnumWrapper<GetFolderByIdQueryParamsDirectionField> getDirection() {
37
    return direction;
1✔
38
  }
39

40
  public Long getOffset() {
41
    return offset;
1✔
42
  }
43

44
  public Long getLimit() {
45
    return limit;
1✔
46
  }
47

48
  public static class Builder {
1✔
49

50
    protected List<String> fields;
51

52
    protected EnumWrapper<GetFolderByIdQueryParamsSortField> sort;
53

54
    protected EnumWrapper<GetFolderByIdQueryParamsDirectionField> direction;
55

56
    protected Long offset;
57

58
    protected Long limit;
59

60
    public Builder fields(List<String> fields) {
61
      this.fields = fields;
1✔
62
      return this;
1✔
63
    }
64

65
    public Builder sort(GetFolderByIdQueryParamsSortField sort) {
66
      this.sort = new EnumWrapper<GetFolderByIdQueryParamsSortField>(sort);
×
67
      return this;
×
68
    }
69

70
    public Builder sort(EnumWrapper<GetFolderByIdQueryParamsSortField> sort) {
UNCOV
71
      this.sort = sort;
×
72
      return this;
×
73
    }
74

75
    public Builder direction(GetFolderByIdQueryParamsDirectionField direction) {
UNCOV
76
      this.direction = new EnumWrapper<GetFolderByIdQueryParamsDirectionField>(direction);
×
77
      return this;
×
78
    }
79

80
    public Builder direction(EnumWrapper<GetFolderByIdQueryParamsDirectionField> direction) {
UNCOV
81
      this.direction = direction;
×
82
      return this;
×
83
    }
84

85
    public Builder offset(Long offset) {
86
      this.offset = offset;
×
87
      return this;
×
88
    }
89

90
    public Builder limit(Long limit) {
91
      this.limit = limit;
×
92
      return this;
×
93
    }
94

95
    public GetFolderByIdQueryParams build() {
96
      return new GetFolderByIdQueryParams(this);
1✔
97
    }
98
  }
99
}
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