Class PaginationParams
- java.lang.Object
-
- com.inteliqua.rest.common.criteria.PaginationParams
-
public class PaginationParams extends Object
Represents the parameters for pagination in requests.This class is used to specify the page number and page size for paginated responses. It includes constraints to ensure valid pagination values are provided.
- Author:
- nikritikos
-
-
Constructor Summary
Constructors Constructor Description PaginationParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetPage()Gets the page number.IntegergetPageSize()Gets the page size.voidsetPage(Integer page)Sets the page number.voidsetPageSize(Integer pageSize)Sets the page size.
-
-
-
Method Detail
-
getPage
public Integer getPage()
Gets the page number.- Returns:
- the page number (defaults to 1 if not specified).
-
setPage
public void setPage(Integer page)
Sets the page number.- Parameters:
page- the page number to set.
-
getPageSize
public Integer getPageSize()
Gets the page size.- Returns:
- the page size (defaults to 10 if not specified).
-
setPageSize
public void setPageSize(Integer pageSize)
Sets the page size.- Parameters:
pageSize- the page size to set.
-
-