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

smartsheet / smartsheet-java-sdk / #66

26 Jun 2026 09:41AM UTC coverage: 59.997% (-0.006%) from 60.003%
#66

push

github

web-flow
Prepare for release v4.1.0 (#180)

4510 of 7517 relevant lines covered (60.0%)

0.6 hits per line

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

84.21
/src/main/java/com/smartsheet/api/models/PagedResult.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
/**
22
 * A wrapper object used to Wrap the data that comes back from the API. It holds the paging info as well as a List
23
 * of objects of the specified type.
24
 *
25
 * @param <T> object
26
 */
27
public class PagedResult<T> {
1✔
28
    Integer pageNumber;
29
    Integer pageSize;
30
    Integer totalCount;
31
    Integer totalPages;
32
    String lastKey;
33
    List<T> data;
34

35
    public List<T> getData() {
36
        return data;
1✔
37
    }
38

39
    public void setData(List<T> data) {
40
        this.data = data;
1✔
41
    }
1✔
42

43
    public Integer getPageNumber() {
44
        return pageNumber;
1✔
45
    }
46

47
    public void setPageNumber(Integer pageNumber) {
48
        this.pageNumber = pageNumber;
1✔
49
    }
1✔
50

51
    public Integer getPageSize() {
52
        return pageSize;
1✔
53
    }
54

55
    public void setPageSize(Integer pageSize) {
56
        this.pageSize = pageSize;
1✔
57
    }
1✔
58

59
    public Integer getTotalCount() {
60
        return totalCount;
1✔
61
    }
62

63
    public void setTotalCount(Integer totalCount) {
64
        this.totalCount = totalCount;
1✔
65
    }
1✔
66

67
    public Integer getTotalPages() {
68
        return totalPages;
1✔
69
    }
70

71
    public void setTotalPages(Integer totalPages) {
72
        this.totalPages = totalPages;
1✔
73
    }
1✔
74

75
    public String getLastKey() {
76
        return lastKey;
×
77
    }
78

79
    public void setLastKey(String lastKey) {
80
        this.lastKey = lastKey;
×
81
    }
×
82
}
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