public class Pageable extends Object implements Serializable
Description:
| 构造器和说明 |
|---|
Pageable(int page,
int size) |
Pageable(int page,
int size,
Sort.Direction direction,
String... properties) |
Pageable(int page,
int size,
Sort sort) |
| 限定符和类型 | 方法和说明 |
|---|---|
Pageable |
first() |
static Pageable |
get()
page=1,size=20
|
int |
getOffset() |
int |
getPageNumber() |
int |
getPageSize() |
Sort |
getSort() |
boolean |
hasPrevious() |
Pageable |
next() |
Pageable |
previous() |
void |
setSort(Sort sort) |
String |
toString() |
public Pageable(int page,
int size)
page - must not be less than one.size - must not be less than one.public Pageable(int page,
int size,
Sort.Direction direction,
String... properties)
public Pageable(int page,
int size,
Sort sort)
public static Pageable get()
public int getPageSize()
public int getPageNumber()
public Sort getSort()
public void setSort(Sort sort)
public int getOffset()
public boolean hasPrevious()
public Pageable next()
public Pageable previous()
public Pageable first()
Copyright © 2019. All rights reserved.