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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

0.0
/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.util.Date;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class MetadataFieldFilterDateRange extends SerializableObject {
14

15
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
16
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
17
  protected Date lt;
18

19
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
20
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
21
  protected Date gt;
22

23
  public MetadataFieldFilterDateRange() {
UNCOV
24
    super();
×
25
  }
×
26

27
  protected MetadataFieldFilterDateRange(Builder builder) {
28
    super();
×
UNCOV
29
    this.lt = builder.lt;
×
UNCOV
30
    this.gt = builder.gt;
×
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
32
  }
×
33

34
  public Date getLt() {
35
    return lt;
×
36
  }
37

38
  public Date getGt() {
UNCOV
39
    return gt;
×
40
  }
41

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

54
  @Override
55
  public int hashCode() {
UNCOV
56
    return Objects.hash(lt, gt);
×
57
  }
58

59
  @Override
60
  public String toString() {
UNCOV
61
    return "MetadataFieldFilterDateRange{" + "lt='" + lt + '\'' + ", " + "gt='" + gt + '\'' + "}";
×
62
  }
63

UNCOV
64
  public static class Builder extends NullableFieldTracker {
×
65

66
    protected Date lt;
67

68
    protected Date gt;
69

70
    public Builder lt(Date lt) {
UNCOV
71
      this.lt = lt;
×
72
      return this;
×
73
    }
74

75
    public Builder gt(Date gt) {
UNCOV
76
      this.gt = gt;
×
77
      return this;
×
78
    }
79

80
    public MetadataFieldFilterDateRange build() {
UNCOV
81
      return new MetadataFieldFilterDateRange(this);
×
82
    }
83
  }
84
}
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