• 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

23.08
/src/main/java/com/box/sdkgen/managers/users/GetUsersQueryParams.java
1
package com.box.sdkgen.managers.users;
2

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

6
public class GetUsersQueryParams {
7

8
  public String filterTerm;
9

10
  public EnumWrapper<GetUsersQueryParamsUserTypeField> userType;
11

12
  public String externalAppUserId;
13

14
  public List<String> fields;
15

16
  public Long offset;
17

18
  public Long limit;
19

20
  public Boolean usemarker;
21

22
  public String marker;
23

24
  public GetUsersQueryParams() {}
1✔
25

NEW
26
  protected GetUsersQueryParams(Builder builder) {
×
27
    this.filterTerm = builder.filterTerm;
×
28
    this.userType = builder.userType;
×
29
    this.externalAppUserId = builder.externalAppUserId;
×
30
    this.fields = builder.fields;
×
31
    this.offset = builder.offset;
×
32
    this.limit = builder.limit;
×
33
    this.usemarker = builder.usemarker;
×
34
    this.marker = builder.marker;
×
35
  }
×
36

37
  public String getFilterTerm() {
38
    return filterTerm;
1✔
39
  }
40

41
  public EnumWrapper<GetUsersQueryParamsUserTypeField> getUserType() {
42
    return userType;
1✔
43
  }
44

45
  public String getExternalAppUserId() {
46
    return externalAppUserId;
1✔
47
  }
48

49
  public List<String> getFields() {
50
    return fields;
1✔
51
  }
52

53
  public Long getOffset() {
54
    return offset;
1✔
55
  }
56

57
  public Long getLimit() {
58
    return limit;
1✔
59
  }
60

61
  public Boolean getUsemarker() {
62
    return usemarker;
1✔
63
  }
64

65
  public String getMarker() {
66
    return marker;
1✔
67
  }
68

NEW
69
  public static class Builder {
×
70

71
    protected String filterTerm;
72

73
    protected EnumWrapper<GetUsersQueryParamsUserTypeField> userType;
74

75
    protected String externalAppUserId;
76

77
    protected List<String> fields;
78

79
    protected Long offset;
80

81
    protected Long limit;
82

83
    protected Boolean usemarker;
84

85
    protected String marker;
86

87
    public Builder filterTerm(String filterTerm) {
88
      this.filterTerm = filterTerm;
×
89
      return this;
×
90
    }
91

92
    public Builder userType(GetUsersQueryParamsUserTypeField userType) {
93
      this.userType = new EnumWrapper<GetUsersQueryParamsUserTypeField>(userType);
×
94
      return this;
×
95
    }
96

97
    public Builder userType(EnumWrapper<GetUsersQueryParamsUserTypeField> userType) {
UNCOV
98
      this.userType = userType;
×
99
      return this;
×
100
    }
101

102
    public Builder externalAppUserId(String externalAppUserId) {
103
      this.externalAppUserId = externalAppUserId;
×
104
      return this;
×
105
    }
106

107
    public Builder fields(List<String> fields) {
108
      this.fields = fields;
×
109
      return this;
×
110
    }
111

112
    public Builder offset(Long offset) {
113
      this.offset = offset;
×
114
      return this;
×
115
    }
116

117
    public Builder limit(Long limit) {
118
      this.limit = limit;
×
119
      return this;
×
120
    }
121

122
    public Builder usemarker(Boolean usemarker) {
123
      this.usemarker = usemarker;
×
124
      return this;
×
125
    }
126

127
    public Builder marker(String marker) {
128
      this.marker = marker;
×
129
      return this;
×
130
    }
131

132
    public GetUsersQueryParams build() {
133
      return new GetUsersQueryParams(this);
×
134
    }
135
  }
136
}
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