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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

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

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.metadataqueryresultitem.MetadataQueryResultItem;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.List;
9
import java.util.Objects;
10

11
/** A page of files and folders that matched the metadata query. */
12
@JsonFilter("nullablePropertyFilter")
13
public class MetadataQueryResults extends SerializableObject {
14

15
  /**
16
   * The mini representation of the files and folders that match the search terms.
17
   *
18
   * <p>By default, this endpoint returns only the most basic info about the items. To get
19
   * additional fields for each item, including any of the metadata, use the `fields` attribute in
20
   * the query.
21
   */
22
  protected List<MetadataQueryResultItem> entries;
23

24
  /**
25
   * The limit that was used for this search. This will be the same as the `limit` query parameter
26
   * unless that value exceeded the maximum value allowed.
27
   */
28
  protected Long limit;
29

30
  /** The marker for the start of the next page of results. */
31
  @JsonProperty("next_marker")
32
  protected String nextMarker;
33

34
  public MetadataQueryResults() {
35
    super();
1✔
36
  }
1✔
37

38
  protected MetadataQueryResults(Builder builder) {
39
    super();
×
40
    this.entries = builder.entries;
×
41
    this.limit = builder.limit;
×
42
    this.nextMarker = builder.nextMarker;
×
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
44
  }
×
45

46
  public List<MetadataQueryResultItem> getEntries() {
47
    return entries;
1✔
48
  }
49

50
  public Long getLimit() {
51
    return limit;
×
52
  }
53

54
  public String getNextMarker() {
55
    return nextMarker;
×
56
  }
57

58
  @Override
59
  public boolean equals(Object o) {
60
    if (this == o) {
×
61
      return true;
×
62
    }
63
    if (o == null || getClass() != o.getClass()) {
×
64
      return false;
×
65
    }
66
    MetadataQueryResults casted = (MetadataQueryResults) o;
×
67
    return Objects.equals(entries, casted.entries)
×
68
        && Objects.equals(limit, casted.limit)
×
69
        && Objects.equals(nextMarker, casted.nextMarker);
×
70
  }
71

72
  @Override
73
  public int hashCode() {
74
    return Objects.hash(entries, limit, nextMarker);
×
75
  }
76

77
  @Override
78
  public String toString() {
79
    return "MetadataQueryResults{"
×
80
        + "entries='"
81
        + entries
82
        + '\''
83
        + ", "
84
        + "limit='"
85
        + limit
86
        + '\''
87
        + ", "
88
        + "nextMarker='"
89
        + nextMarker
90
        + '\''
91
        + "}";
92
  }
93

94
  public static class Builder extends NullableFieldTracker {
×
95

96
    protected List<MetadataQueryResultItem> entries;
97

98
    protected Long limit;
99

100
    protected String nextMarker;
101

102
    public Builder entries(List<MetadataQueryResultItem> entries) {
103
      this.entries = entries;
×
104
      return this;
×
105
    }
106

107
    public Builder limit(Long limit) {
108
      this.limit = limit;
×
109
      return this;
×
110
    }
111

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

117
    public MetadataQueryResults build() {
118
      return new MetadataQueryResults(this);
×
119
    }
120
  }
121
}
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