• 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

13.04
/src/main/java/com/box/sdkgen/schemas/metadatatemplate/MetadataTemplateFieldsOptionsField.java
1
package com.box.sdkgen.schemas.metadatatemplate;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5
import java.util.Objects;
6

7
public class MetadataTemplateFieldsOptionsField extends SerializableObject {
8

9
  protected final String key;
10

11
  protected String id;
12

13
  public MetadataTemplateFieldsOptionsField(@JsonProperty("key") String key) {
14
    super();
1✔
15
    this.key = key;
1✔
16
  }
1✔
17

18
  protected MetadataTemplateFieldsOptionsField(Builder builder) {
19
    super();
×
20
    this.key = builder.key;
×
21
    this.id = builder.id;
×
22
  }
×
23

24
  public String getKey() {
25
    return key;
×
26
  }
27

28
  public String getId() {
29
    return id;
×
30
  }
31

32
  @Override
33
  public boolean equals(Object o) {
34
    if (this == o) {
×
35
      return true;
×
36
    }
37
    if (o == null || getClass() != o.getClass()) {
×
38
      return false;
×
39
    }
40
    MetadataTemplateFieldsOptionsField casted = (MetadataTemplateFieldsOptionsField) o;
×
41
    return Objects.equals(key, casted.key) && Objects.equals(id, casted.id);
×
42
  }
43

44
  @Override
45
  public int hashCode() {
46
    return Objects.hash(key, id);
×
47
  }
48

49
  @Override
50
  public String toString() {
51
    return "MetadataTemplateFieldsOptionsField{"
×
52
        + "key='"
53
        + key
54
        + '\''
55
        + ", "
56
        + "id='"
57
        + id
58
        + '\''
59
        + "}";
60
  }
61

62
  public static class Builder {
63

64
    protected final String key;
65

66
    protected String id;
67

NEW
68
    public Builder(String key) {
×
69
      this.key = key;
×
70
    }
×
71

72
    public Builder id(String id) {
73
      this.id = id;
×
74
      return this;
×
75
    }
76

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