Package com.power4j.fist.data.domain
Class AbstractPageRequest
java.lang.Object
com.power4j.fist.data.domain.AbstractPageRequest
- All Implemented Interfaces:
Pageable
- Direct Known Subclasses:
PageRequest
- Since:
- 1.0
- Author:
- CJ (power4j@outlook.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint页码int页大小boolean检查是否有前一页abstract PageRequestprevious()Returns the Pageable requesting the previous Page.翻页,前一页或者第一页
-
Constructor Details
-
AbstractPageRequest
protected AbstractPageRequest(int pageNumber, int pageSize)
-
-
Method Details
-
getPageNumber
public int getPageNumber()Description copied from interface:Pageable页码- Specified by:
getPageNumberin interfacePageable- Returns:
- 返回页码.
-
getPageSize
public int getPageSize()Description copied from interface:Pageable页大小- Specified by:
getPageSizein interfacePageable- Returns:
- 返回页大小
-
hasPrevious
public boolean hasPrevious()Description copied from interface:Pageable检查是否有前一页- Specified by:
hasPreviousin interfacePageable- Returns:
- true 表示可以向前翻页
-
previousOrFirst
Description copied from interface:Pageable翻页,前一页或者第一页- Specified by:
previousOrFirstin interfacePageable- Returns:
- Pageable
-
previous
Returns the Pageable requesting the previous Page.- Returns:
- PageRequest
-