Class ObjectPagingParams
java.lang.Object
com.iland.core.web.rest.response.common.ObjectPagingParams
- All Implemented Interfaces:
Serializable
Object Paging Params.
- Author:
- Collin Snyder
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor sets the page to 1, the pageSize to 25.ObjectPagingParams(Long page, Long pageSize) Instantiates a new Paging params.ObjectPagingParams(Long page, Long pageSize, String filter) Instantiates a new Paging params. -
Method Summary
Modifier and TypeMethodDescriptionGets filter.longgetPage()Gets page.longGets page size.Sets filter.Sets page.setPageSize(Long pageSize) Sets page size.
-
Field Details
-
page
The page number. The index of the first page is 1. If the specified page number is larger than number of actual pages, the response will return as an empty list. -
pageSize
The page size. The number of objects per page. -
filter
The filter. The filter on the names of the objects. If no filter is specified, all objects will be returned for the member type.
-
-
Constructor Details
-
ObjectPagingParams
public ObjectPagingParams()Default constructor sets the page to 1, the pageSize to 25. -
ObjectPagingParams
Instantiates a new Paging params.- Parameters:
page- the offsetpageSize- the limit
-
ObjectPagingParams
Instantiates a new Paging params.- Parameters:
page- the offsetpageSize- the limitfilter- the filter
-
-
Method Details
-
getPage
public long getPage()Gets page.- Returns:
- the offset
-
getPageSize
public long getPageSize()Gets page size.- Returns:
- the limit
-
getFilter
Gets filter.- Returns:
- the filter
-
setPage
Sets page.- Parameters:
page- the offset- Returns:
- the offset
-
setPageSize
Sets page size.- Parameters:
pageSize- the limit- Returns:
- the limit
-
setFilter
Sets filter.- Parameters:
filter- the filter
-