• 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

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

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

9
@JsonFilter("nullablePropertyFilter")
10
public class MetadataTemplateFieldsOptionsField extends SerializableObject {
11

12
  /**
13
   * The text value of the option. This represents both the display name of the option and the
14
   * internal key used when updating templates.
15
   */
16
  protected final String key;
17

18
  /** The internal unique identifier of the option. */
19
  protected String id;
20

21
  public MetadataTemplateFieldsOptionsField(@JsonProperty("key") String key) {
22
    super();
1✔
23
    this.key = key;
1✔
24
  }
1✔
25

26
  protected MetadataTemplateFieldsOptionsField(Builder builder) {
27
    super();
×
28
    this.key = builder.key;
×
29
    this.id = builder.id;
×
30
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
31
  }
×
32

33
  public String getKey() {
34
    return key;
×
35
  }
36

37
  public String getId() {
38
    return id;
×
39
  }
40

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

53
  @Override
54
  public int hashCode() {
55
    return Objects.hash(key, id);
×
56
  }
57

58
  @Override
59
  public String toString() {
60
    return "MetadataTemplateFieldsOptionsField{"
×
61
        + "key='"
62
        + key
63
        + '\''
64
        + ", "
65
        + "id='"
66
        + id
67
        + '\''
68
        + "}";
69
  }
70

71
  public static class Builder extends NullableFieldTracker {
72

73
    protected final String key;
74

75
    protected String id;
76

77
    public Builder(String key) {
78
      super();
×
79
      this.key = key;
×
80
    }
×
81

82
    public Builder id(String id) {
83
      this.id = id;
×
84
      return this;
×
85
    }
86

87
    public MetadataTemplateFieldsOptionsField build() {
88
      return new MetadataTemplateFieldsOptionsField(this);
×
89
    }
90
  }
91
}
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