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

smartsheet / smartsheet-java-sdk / #45

29 Aug 2023 04:23PM UTC coverage: 50.55%. Remained the same
#45

push

github-actions

web-flow
Make the license header consistent and add checkstyle rule (#63)

* Make the license header consistent and add checkstyle rule

* Make the file license come before the package

* Remove Smartsheet SDK for Java from every file

3448 of 6821 relevant lines covered (50.55%)

0.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/smartsheet/api/models/Predecessor.java
1
/*
2
 * Copyright (C) 2023 Smartsheet
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.smartsheet.api.models;
18

19
public class Predecessor {
×
20

21
    /**
22
     * The Id of the predecessor row
23
     */
24
    private Long rowId;
25

26
    /**
27
     * The row number of the predecessor row
28
     */
29
    private Integer rowNumber;
30

31
    /**
32
     * The type of the predecessor - one of FS, FF, SS, or SF
33
     */
34
    private String type;
35

36
    /**
37
     * The lag value of this predecessor. Omitted if there is no lag.
38
     */
39
    private Duration lag;
40

41
    /**
42
     * True if the row referenced by rowId is not a valid row in this sheet, or there is a circular reference
43
     */
44
    private Boolean invalid;
45

46
    /**
47
     * True if this predecessor is in the critical path
48
     */
49
    private Boolean inCriticalPath;
50

51
    /**
52
     * Get the Id of the predecessor row
53
     *
54
     * @return rowId
55
     */
56
    public Long getRowId() {
57
        return rowId;
×
58
    }
59

60
    /**
61
     * Set the Id of the predecessor row
62
     */
63
    public Predecessor setRowId(Long rowId) {
64
        this.rowId = rowId;
×
65
        return this;
×
66
    }
67

68
    /**
69
     * Get the number of the predecessor row
70
     *
71
     * @return rowNumber
72
     */
73
    public Integer getRowNumber() {
74
        return rowNumber;
×
75
    }
76

77
    /**
78
     * Set the number of the predecessor row
79
     */
80
    public Predecessor setRowNumber(Integer rowNumber) {
81
        this.rowNumber = rowNumber;
×
82
        return this;
×
83
    }
84

85
    /**
86
     * Get the type of the predecessor
87
     *
88
     * @return type (FS, FF, SS, or SF)
89
     */
90
    public String getType() {
91
        return type;
×
92
    }
93

94
    /**
95
     * Set the type of the predecessor
96
     */
97
    public Predecessor setType(String type) {
98
        this.type = type;
×
99
        return this;
×
100
    }
101

102
    /**
103
     * Get the lag value of this predecessor
104
     *
105
     * @return lag
106
     */
107
    public Duration getLag() {
108
        return lag;
×
109
    }
110

111
    /**
112
     * Set the lag value of this predecessor
113
     */
114
    public Predecessor setLag(Duration lag) {
115
        this.lag = lag;
×
116
        return this;
×
117
    }
118

119
    /**
120
     * Get flag indicating if the row referenced by rowId is not a valid row in this sheet,
121
     * or if there is a circular reference
122
     *
123
     * @return invalid
124
     */
125
    public Boolean isInvalid() {
126
        return invalid;
×
127
    }
128

129
    /**
130
     * Set flag indicating if the row referenced by rowId is not a valid row in this sheet,
131
     * or if there is a circular reference
132
     */
133
    public Predecessor setInvalid(Boolean invalid) {
134
        this.invalid = invalid;
×
135
        return this;
×
136
    }
137

138
    /**
139
     * Get flag indicating if this predecessor is in the critical path
140
     *
141
     * @return inCriticalPath
142
     */
143
    public Boolean isInCriticalPath() {
144
        return inCriticalPath;
×
145
    }
146

147
    /**
148
     * Set flag indicating if this predecessor is in the critical path
149
     */
150
    public Predecessor setInCriticalPath(Boolean inCriticalPath) {
151
        this.inCriticalPath = inCriticalPath;
×
152
        return this;
×
153
    }
154
}
155

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