• 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/skillinvocation/SkillInvocationTokenReadField.java
1
package com.box.sdkgen.schemas.skillinvocation;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.Objects;
9

10
public class SkillInvocationTokenReadField extends SerializableObject {
11

12
  @JsonProperty("access_token")
13
  protected String accessToken;
14

15
  @JsonProperty("expires_in")
16
  protected Long expiresIn;
17

18
  @JsonDeserialize(
19
      using =
20
          SkillInvocationTokenReadTokenTypeField.SkillInvocationTokenReadTokenTypeFieldDeserializer
21
              .class)
22
  @JsonSerialize(
23
      using =
24
          SkillInvocationTokenReadTokenTypeField.SkillInvocationTokenReadTokenTypeFieldSerializer
25
              .class)
26
  @JsonProperty("token_type")
27
  protected EnumWrapper<SkillInvocationTokenReadTokenTypeField> tokenType;
28

29
  @JsonProperty("restricted_to")
30
  protected String restrictedTo;
31

32
  public SkillInvocationTokenReadField() {
33
    super();
×
34
  }
×
35

36
  protected SkillInvocationTokenReadField(Builder builder) {
37
    super();
×
38
    this.accessToken = builder.accessToken;
×
39
    this.expiresIn = builder.expiresIn;
×
40
    this.tokenType = builder.tokenType;
×
41
    this.restrictedTo = builder.restrictedTo;
×
42
  }
×
43

44
  public String getAccessToken() {
45
    return accessToken;
×
46
  }
47

48
  public Long getExpiresIn() {
49
    return expiresIn;
×
50
  }
51

52
  public EnumWrapper<SkillInvocationTokenReadTokenTypeField> getTokenType() {
53
    return tokenType;
×
54
  }
55

56
  public String getRestrictedTo() {
57
    return restrictedTo;
×
58
  }
59

60
  @Override
61
  public boolean equals(Object o) {
62
    if (this == o) {
×
63
      return true;
×
64
    }
65
    if (o == null || getClass() != o.getClass()) {
×
66
      return false;
×
67
    }
68
    SkillInvocationTokenReadField casted = (SkillInvocationTokenReadField) o;
×
69
    return Objects.equals(accessToken, casted.accessToken)
×
70
        && Objects.equals(expiresIn, casted.expiresIn)
×
71
        && Objects.equals(tokenType, casted.tokenType)
×
72
        && Objects.equals(restrictedTo, casted.restrictedTo);
×
73
  }
74

75
  @Override
76
  public int hashCode() {
77
    return Objects.hash(accessToken, expiresIn, tokenType, restrictedTo);
×
78
  }
79

80
  @Override
81
  public String toString() {
82
    return "SkillInvocationTokenReadField{"
×
83
        + "accessToken='"
84
        + accessToken
85
        + '\''
86
        + ", "
87
        + "expiresIn='"
88
        + expiresIn
89
        + '\''
90
        + ", "
91
        + "tokenType='"
92
        + tokenType
93
        + '\''
94
        + ", "
95
        + "restrictedTo='"
96
        + restrictedTo
97
        + '\''
98
        + "}";
99
  }
100

NEW
101
  public static class Builder {
×
102

103
    protected String accessToken;
104

105
    protected Long expiresIn;
106

107
    protected EnumWrapper<SkillInvocationTokenReadTokenTypeField> tokenType;
108

109
    protected String restrictedTo;
110

111
    public Builder accessToken(String accessToken) {
112
      this.accessToken = accessToken;
×
113
      return this;
×
114
    }
115

116
    public Builder expiresIn(Long expiresIn) {
117
      this.expiresIn = expiresIn;
×
118
      return this;
×
119
    }
120

121
    public Builder tokenType(SkillInvocationTokenReadTokenTypeField tokenType) {
UNCOV
122
      this.tokenType = new EnumWrapper<SkillInvocationTokenReadTokenTypeField>(tokenType);
×
123
      return this;
×
124
    }
125

126
    public Builder tokenType(EnumWrapper<SkillInvocationTokenReadTokenTypeField> tokenType) {
UNCOV
127
      this.tokenType = tokenType;
×
128
      return this;
×
129
    }
130

131
    public Builder restrictedTo(String restrictedTo) {
132
      this.restrictedTo = restrictedTo;
×
133
      return this;
×
134
    }
135

136
    public SkillInvocationTokenReadField build() {
137
      return new SkillInvocationTokenReadField(this);
×
138
    }
139
  }
140
}
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