MCPcopy Create free account
hub / github.com/FiscalAPI/fiscalapi-java / PagedList

Class PagedList

src/main/java/com/fiscalapi/common/PagedList.java:4–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import java.util.List;
3
4public class PagedList<T> extends SerializableDto {
5 private List<T> items;
6
7 private int pageNumber;
8 private int totalPages;
9 private int totalCount;
10 private boolean hasPreviousPage;
11 private boolean hasNextPage;
12
13 public PagedList() {
14 }
15
16 public List<T> getItems() {
17 return items;
18 }
19
20 public void setItems(List<T> items) {
21 this.items = items;
22 }
23
24
25 public int getTotalCount() {
26 return totalCount;
27 }
28
29 public void setTotalCount(int totalCount) {
30 this.totalCount = totalCount;
31 }
32
33 public int getTotalPages() {
34 return totalPages;
35 }
36
37 public void setTotalPages(int totalPages) {
38 this.totalPages = totalPages;
39 }
40
41 public boolean isHasPreviousPage() {
42 return hasPreviousPage;
43 }
44
45 public void setHasPreviousPage(boolean hasPreviousPage) {
46 this.hasPreviousPage = hasPreviousPage;
47 }
48
49 public boolean isHasNextPage() {
50 return hasNextPage;
51 }
52
53 public void setHasNextPage(boolean hasNextPage) {
54 this.hasNextPage = hasNextPage;
55 }
56
57 public int getPageNumber() {
58 return pageNumber;
59 }
60
61 public void setPageNumber(int pageNumber) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected