• 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

10.71
/src/main/java/com/box/sdkgen/schemas/metadataqueryresults/MetadataQueryResults.java
1
package com.box.sdkgen.schemas.metadataqueryresults;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.filefullorfolderfull.FileFullOrFolderFull;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.List;
7
import java.util.Objects;
8

9
public class MetadataQueryResults extends SerializableObject {
10

11
  protected List<FileFullOrFolderFull> entries;
12

13
  protected Long limit;
14

15
  @JsonProperty("next_marker")
16
  protected String nextMarker;
17

18
  public MetadataQueryResults() {
19
    super();
1✔
20
  }
1✔
21

22
  protected MetadataQueryResults(Builder builder) {
23
    super();
×
24
    this.entries = builder.entries;
×
25
    this.limit = builder.limit;
×
26
    this.nextMarker = builder.nextMarker;
×
27
  }
×
28

29
  public List<FileFullOrFolderFull> getEntries() {
30
    return entries;
1✔
31
  }
32

33
  public Long getLimit() {
34
    return limit;
×
35
  }
36

37
  public String getNextMarker() {
38
    return nextMarker;
×
39
  }
40

41
  @Override
42
  public boolean equals(Object o) {
43
    if (this == o) {
×
44
      return true;
×
45
    }
46
    if (o == null || getClass() != o.getClass()) {
×
47
      return false;
×
48
    }
49
    MetadataQueryResults casted = (MetadataQueryResults) o;
×
50
    return Objects.equals(entries, casted.entries)
×
51
        && Objects.equals(limit, casted.limit)
×
52
        && Objects.equals(nextMarker, casted.nextMarker);
×
53
  }
54

55
  @Override
56
  public int hashCode() {
57
    return Objects.hash(entries, limit, nextMarker);
×
58
  }
59

60
  @Override
61
  public String toString() {
62
    return "MetadataQueryResults{"
×
63
        + "entries='"
64
        + entries
65
        + '\''
66
        + ", "
67
        + "limit='"
68
        + limit
69
        + '\''
70
        + ", "
71
        + "nextMarker='"
72
        + nextMarker
73
        + '\''
74
        + "}";
75
  }
76

NEW
77
  public static class Builder {
×
78

79
    protected List<FileFullOrFolderFull> entries;
80

81
    protected Long limit;
82

83
    protected String nextMarker;
84

85
    public Builder entries(List<FileFullOrFolderFull> entries) {
86
      this.entries = entries;
×
87
      return this;
×
88
    }
89

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

95
    public Builder nextMarker(String nextMarker) {
96
      this.nextMarker = nextMarker;
×
97
      return this;
×
98
    }
99

100
    public MetadataQueryResults build() {
101
      return new MetadataQueryResults(this);
×
102
    }
103
  }
104
}
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