• 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

56.52
/src/main/java/com/box/sdkgen/schemas/metadatafieldfilterdaterange/MetadataFieldFilterDateRange.java
1
package com.box.sdkgen.schemas.metadatafieldfilterdaterange;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.time.OffsetDateTime;
10
import java.util.Objects;
11

12
/**
13
 * Specifies which `date` field on the template to filter the search results by, specifying a range
14
 * of dates that can match.
15
 */
16
@JsonFilter("nullablePropertyFilter")
17
public class MetadataFieldFilterDateRange extends SerializableObject {
18

19
  /**
20
   * Specifies the (inclusive) upper bound for the metadata field value. The value of a field must
21
   * be lower than (`lt`) or equal to this value for the search query to match this template.
22
   */
23
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
24
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
25
  protected OffsetDateTime lt;
26

27
  /**
28
   * Specifies the (inclusive) lower bound for the metadata field value. The value of a field must
29
   * be greater than (`gt`) or equal to this value for the search query to match this template.
30
   */
31
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
32
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
33
  protected OffsetDateTime gt;
34

35
  public MetadataFieldFilterDateRange() {
36
    super();
×
37
  }
×
38

39
  protected MetadataFieldFilterDateRange(Builder builder) {
40
    super();
1✔
41
    this.lt = builder.lt;
1✔
42
    this.gt = builder.gt;
1✔
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
44
  }
1✔
45

46
  public OffsetDateTime getLt() {
47
    return lt;
1✔
48
  }
49

50
  public OffsetDateTime getGt() {
51
    return gt;
1✔
52
  }
53

54
  @Override
55
  public boolean equals(Object o) {
56
    if (this == o) {
×
57
      return true;
×
58
    }
59
    if (o == null || getClass() != o.getClass()) {
×
60
      return false;
×
61
    }
62
    MetadataFieldFilterDateRange casted = (MetadataFieldFilterDateRange) o;
×
63
    return Objects.equals(lt, casted.lt) && Objects.equals(gt, casted.gt);
×
64
  }
65

66
  @Override
67
  public int hashCode() {
68
    return Objects.hash(lt, gt);
×
69
  }
70

71
  @Override
72
  public String toString() {
73
    return "MetadataFieldFilterDateRange{" + "lt='" + lt + '\'' + ", " + "gt='" + gt + '\'' + "}";
×
74
  }
75

76
  public static class Builder extends NullableFieldTracker {
1✔
77

78
    protected OffsetDateTime lt;
79

80
    protected OffsetDateTime gt;
81

82
    public Builder lt(OffsetDateTime lt) {
83
      this.lt = lt;
1✔
84
      return this;
1✔
85
    }
86

87
    public Builder gt(OffsetDateTime gt) {
88
      this.gt = gt;
1✔
89
      return this;
1✔
90
    }
91

92
    public MetadataFieldFilterDateRange build() {
93
      return new MetadataFieldFilterDateRange(this);
1✔
94
    }
95
  }
96
}
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