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

smartsheet / smartsheet-java-sdk / #43

24 Aug 2023 10:26PM UTC coverage: 50.427% (-0.02%) from 50.442%
#43

push

github-actions

web-flow
Fix Checkstyle violations in api/models Classes (#57)

This will fix ~900 violations

189 of 189 new or added lines in 59 files covered. (100.0%)

3423 of 6788 relevant lines covered (50.43%)

0.5 hits per line

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

33.33
/src/main/java/com/smartsheet/api/models/CopyOrMoveRowDirective.java
1
package com.smartsheet.api.models;
2

3
import java.util.List;
4

5
/*
6
 * #[license]
7
 * Smartsheet SDK for Java
8
 * %%
9
 * Copyright (C) 2023 Smartsheet
10
 * %%
11
 * Licensed under the Apache License, Version 2.0 (the "License");
12
 * you may not use this file except in compliance with the License.
13
 * You may obtain a copy of the License at
14
 *
15
 *      http://www.apache.org/licenses/LICENSE-2.0
16
 *
17
 * Unless required by applicable law or agreed to in writing, software
18
 * distributed under the License is distributed on an "AS IS" BASIS,
19
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
 * See the License for the specific language governing permissions and
21
 * limitations under the License.
22
 * %[license]
23
 */
24
public class CopyOrMoveRowDirective {
25

26
    /** Represents the IDs of the rows to move or copy from the source sheet. */
27
    private List<Long> rowIds;
28

29
    /** Represents the CopyOrMoveRowDestination object that identifies the destination sheet */
30
    private CopyOrMoveRowDestination to;
31

32
    /**
33
     * Constructors
34
     */
35
    public CopyOrMoveRowDirective() { }
1✔
36

37
    public CopyOrMoveRowDirective(Long destinationSheetId) {
×
38
        to.setSheetId(destinationSheetId);
×
39
    }
×
40

41
    /**
42
     * Gets the IDs of the rows to move or copy from the source sheet..
43
     *
44
     * @return the IDs of the rows to move or copy from the source sheet.
45
     */
46
    public List<Long> getRowIds() {
47
        return rowIds;
1✔
48
    }
49

50
    /**
51
     * Sets the IDs of the rows to move or copy from the source sheet.
52
     *
53
     * @param rowIds ID of the destination sheet
54
     */
55
    public CopyOrMoveRowDirective setRowIds(List<Long> rowIds) {
56
        this.rowIds = rowIds;
1✔
57
        return this;
1✔
58
    }
59

60
    /**
61
     * Gets the CopyOrMoveRowDestination object that identifies the destination sheet.
62
     *
63
     * @return the CopyOrMoveRowDestination object that identifies the destination sheet.
64
     */
65
    public CopyOrMoveRowDestination getTo() {
66
        return to;
1✔
67
    }
68

69
    /**
70
     * Sets the CopyOrMoveRowDestination object that identifies the destination sheet.
71
     *
72
     * @param to CopyOrMoveRowDestination object
73
     */
74
    public CopyOrMoveRowDirective setTo(CopyOrMoveRowDestination to) {
75
        this.to = to;
1✔
76
        return this;
1✔
77
    }
78

79
    /**
80
     * A convenience class to help create a CopyOrMoveRowDestination object with the appropriate fields for adding to a sheet.
81
     */
82
    public static class InsertCopyOrMoveRowDirectiveBuilder {
×
83
        /** Represents the IDs of the rows to move or copy from the source sheet. */
84
        private List<Long> rowIds;
85

86
        /** Represents the CopyOrMoveRowDestination object that identifies the destination sheet */
87
        private CopyOrMoveRowDestination to;
88

89
        /**
90
         * Gets the IDs of the rows to move or copy from the source sheet..
91
         *
92
         * @return the IDs of the rows to move or copy from the source sheet.
93
         */
94
        public List<Long> getRowIds() {
95
            return rowIds;
×
96
        }
97

98
        /**
99
         * Sets the IDs of the rows to move or copy from the source sheet.
100
         *
101
         * @param rowIds ID of the destination sheet
102
         * @return the builder
103
         */
104
        public InsertCopyOrMoveRowDirectiveBuilder setRowIds(List<Long> rowIds) {
105
            this.rowIds = rowIds;
×
106
            return this;
×
107
        }
108

109
        /**
110
         * Gets the CopyOrMoveRowDestination object that identifies the destination sheet.
111
         *
112
         * @return the CopyOrMoveRowDestination object that identifies the destination sheet.
113
         */
114
        public CopyOrMoveRowDestination getTo() {
115
            return to;
×
116
        }
117

118
        /**
119
         * Sets the CopyOrMoveRowDestination object that identifies the destination sheet.
120
         *
121
         * @param to CopyOrMoveRowDestination object
122
         * @return the builder
123
         */
124
        public InsertCopyOrMoveRowDirectiveBuilder setTo(CopyOrMoveRowDestination to) {
125
            this.to = to;
×
126
            return this;
×
127
        }
128

129
        /**
130
         * Builds the CopyOrMoveRowDirective.
131
         *
132
         * @return the CopyOrMoveRowDirective
133
         */
134
        public CopyOrMoveRowDirective build() {
135
            CopyOrMoveRowDirective copyOrMoveRowDirective = new CopyOrMoveRowDirective();
×
136
            copyOrMoveRowDirective.rowIds = rowIds;
×
137
            copyOrMoveRowDirective.to = to;
×
138
            return copyOrMoveRowDirective;
×
139
        }
140
    }
141
}
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