• 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

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.SerializableObject;
4
import com.box.sdkgen.internal.utils.DateTimeUtils;
5
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
6
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
7
import java.util.Date;
8
import java.util.Objects;
9

10
public class MetadataFieldFilterDateRange extends SerializableObject {
11

12
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
13
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
14
  protected Date lt;
15

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

20
  public MetadataFieldFilterDateRange() {
21
    super();
×
22
  }
×
23

24
  protected MetadataFieldFilterDateRange(Builder builder) {
25
    super();
×
26
    this.lt = builder.lt;
×
27
    this.gt = builder.gt;
×
28
  }
×
29

30
  public Date getLt() {
31
    return lt;
×
32
  }
33

34
  public Date getGt() {
35
    return gt;
×
36
  }
37

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

50
  @Override
51
  public int hashCode() {
52
    return Objects.hash(lt, gt);
×
53
  }
54

55
  @Override
56
  public String toString() {
57
    return "MetadataFieldFilterDateRange{" + "lt='" + lt + '\'' + ", " + "gt='" + gt + '\'' + "}";
×
58
  }
59

NEW
60
  public static class Builder {
×
61

62
    protected Date lt;
63

64
    protected Date gt;
65

66
    public Builder lt(Date lt) {
67
      this.lt = lt;
×
68
      return this;
×
69
    }
70

71
    public Builder gt(Date gt) {
72
      this.gt = gt;
×
73
      return this;
×
74
    }
75

76
    public MetadataFieldFilterDateRange build() {
77
      return new MetadataFieldFilterDateRange(this);
×
78
    }
79
  }
80
}
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