public class PageRequest extends Object implements Pageable
| 构造器和说明 |
|---|
PageRequest() |
PageRequest(int page,
int size) |
PageRequest(int page,
int size,
int offset) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getOffset()
偏移量大小,默认0
|
int |
getPage()
获取页码,从0开始
|
int |
getSize()
获取分页大小,默认20
|
Pageable |
next()
向后翻页
|
Pageable |
previous()
向前翻页
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfirst, firstWithOffset, getFrom, of, withOffsetpublic PageRequest()
public PageRequest(int page,
int size)
public PageRequest(int page,
int size,
int offset)
public int getOffset()
PageableCopyright © 2021. All rights reserved.