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

box / box-java-sdk / #5838

16 Dec 2025 01:57PM UTC coverage: 12.903% (-0.4%) from 13.282%
#5838

Pull #1633

github

web-flow
Merge 39eadee31 into af4861f83
Pull Request #1633: feat(boxsdkgen): Treat nullable fields as Optional (box/box-codegen#906)

0 of 1897 new or added lines in 73 files covered. (0.0%)

19 existing lines in 10 files now uncovered.

8374 of 64898 relevant lines covered (12.9%)

0.13 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/metadatataxonomylevel/MetadataTaxonomyLevel.java
1
package com.box.sdkgen.schemas.metadatataxonomylevel;
2

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

8
/**
9
 * A level in the metadata taxonomy represents a hierarchical category within the taxonomy
10
 * structure.
11
 */
12
@JsonFilter("nullablePropertyFilter")
13
public class MetadataTaxonomyLevel extends SerializableObject {
14

15
  /** The display name of the level as it is shown to the user. */
16
  protected String displayName;
17

18
  /** A description of the level. */
19
  protected String description;
20

21
  /** An index of the level within the taxonomy. Levels are indexed starting from 1. */
22
  protected Integer level;
23

24
  public MetadataTaxonomyLevel() {
NEW
25
    super();
×
NEW
26
  }
×
27

28
  protected MetadataTaxonomyLevel(Builder builder) {
NEW
29
    super();
×
NEW
30
    this.displayName = builder.displayName;
×
NEW
31
    this.description = builder.description;
×
NEW
32
    this.level = builder.level;
×
NEW
33
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
34
  }
×
35

36
  public String getDisplayName() {
NEW
37
    return displayName;
×
38
  }
39

40
  public String getDescription() {
NEW
41
    return description;
×
42
  }
43

44
  public Integer getLevel() {
NEW
45
    return level;
×
46
  }
47

48
  @Override
49
  public boolean equals(Object o) {
NEW
50
    if (this == o) {
×
NEW
51
      return true;
×
52
    }
NEW
53
    if (o == null || getClass() != o.getClass()) {
×
NEW
54
      return false;
×
55
    }
NEW
56
    MetadataTaxonomyLevel casted = (MetadataTaxonomyLevel) o;
×
NEW
57
    return Objects.equals(displayName, casted.displayName)
×
NEW
58
        && Objects.equals(description, casted.description)
×
NEW
59
        && Objects.equals(level, casted.level);
×
60
  }
61

62
  @Override
63
  public int hashCode() {
NEW
64
    return Objects.hash(displayName, description, level);
×
65
  }
66

67
  @Override
68
  public String toString() {
NEW
69
    return "MetadataTaxonomyLevel{"
×
70
        + "displayName='"
71
        + displayName
72
        + '\''
73
        + ", "
74
        + "description='"
75
        + description
76
        + '\''
77
        + ", "
78
        + "level='"
79
        + level
80
        + '\''
81
        + "}";
82
  }
83

NEW
84
  public static class Builder extends NullableFieldTracker {
×
85

86
    protected String displayName;
87

88
    protected String description;
89

90
    protected Integer level;
91

92
    public Builder displayName(String displayName) {
NEW
93
      this.displayName = displayName;
×
NEW
94
      return this;
×
95
    }
96

97
    public Builder description(String description) {
NEW
98
      this.description = description;
×
NEW
99
      return this;
×
100
    }
101

102
    public Builder level(Integer level) {
NEW
103
      this.level = level;
×
NEW
104
      return this;
×
105
    }
106

107
    public MetadataTaxonomyLevel build() {
NEW
108
      return new MetadataTaxonomyLevel(this);
×
109
    }
110
  }
111
}
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