public class DefaultPaginationInfo extends java.lang.Object implements PaginationInfo
PaginationInfo
.PaginationInfo
Constructor and Description |
---|
DefaultPaginationInfo() |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentPage()
Get the current page, starting from 0
|
int |
getPageSize()
Get the number of products in a page
|
int |
getTotalPages()
Get the total number of pages, starting from 1
|
int |
getTotalResults()
Get the total number of results
|
void |
setCurrentPage(int currentPage) |
void |
setPageSize(int pageSize) |
void |
setTotalPages(int totalPages) |
void |
setTotalResults(int totalResults) |
public int getPageSize()
getPageSize
in interface PaginationInfo
public int getCurrentPage()
getCurrentPage
in interface PaginationInfo
public int getTotalPages()
getTotalPages
in interface PaginationInfo
public int getTotalResults()
getTotalResults
in interface PaginationInfo
public void setPageSize(int pageSize)
public void setCurrentPage(int currentPage)
public void setTotalPages(int totalPages)
public void setTotalResults(int totalResults)
Copyright © 2010 - 2020 Adobe. All Rights Reserved