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

smartsheet / smartsheet-java-sdk / #61

04 Dec 2025 01:00PM UTC coverage: 60.098% (-0.06%) from 60.156%
#61

push

github

web-flow
Merge pull request #155 from smartsheet/add-user-reactivate-deactivate-endpoints-support

Add user reactivate deactivate endpoints support

0 of 4 new or added lines in 1 file covered. (0.0%)

93 existing lines in 4 files now uncovered.

4395 of 7313 relevant lines covered (60.1%)

0.6 hits per line

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

50.0
/src/main/java/com/smartsheet/api/models/ListAssetSharesResponse.java
1
/*
2
 * Copyright (C) 2025 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
import java.util.List;
20

21
public class ListAssetSharesResponse<T> {
1✔
22
    /**
23
     * The list of items of type T.
24
     */
25
    private List<T> items;
26

27
    /**
28
     * Token for retrieving the next page of results.
29
     */
30
    private String lastKey;
31

32
    /**
33
     * Gets the token for retrieving the next page of results.
34
     *
35
     * @return the last key
36
     */
37
    public String getLastKey() {
UNCOV
38
        return lastKey;
×
39
    }
40

41
    /**
42
     * Sets the token for retrieving the next page of results.
43
     *
44
     * @param lastKey the last key
45
     * @return this ListAssetSharesResponse instance for method chaining
46
     */
47
    public ListAssetSharesResponse<T> setLastKey(String lastKey) {
UNCOV
48
        this.lastKey = lastKey;
×
UNCOV
49
        return this;
×
50
    }
51

52
    /**
53
     * Checks if there are more pages available.
54
     *
55
     * @return true if there are more pages (lastKey is not null and not empty), false otherwise
56
     */
57
    public boolean hasMorePages() {
UNCOV
58
        return lastKey != null && !lastKey.trim().isEmpty();
×
59
    }
60

61
    /**
62
     * Gets the list of items.
63
     *
64
     * @return the items
65
     */
66
    public List<T> getItems() {
67
        return items;
1✔
68
    }
69

70
    /**
71
     * Sets the list of items.
72
     *
73
     * @param items the items
74
     * @return this ListAssetSharesResponse instance for method chaining
75
     */
76
    public ListAssetSharesResponse<T> setItems(List<T> items) {
77
        this.items = items;
1✔
78
        return this;
1✔
79
    }
80
}
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

© 2025 Coveralls, Inc