Class Pageable
- java.lang.Object
-
- com.foxinmy.weixin4j.model.paging.Pageable
-
- All Implemented Interfaces:
Serializable
public class Pageable extends Object implements Serializable
分页数据(页码从1开始- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pageable
first()
static Pageable
get()
page=1,size=20int
getOffset()
int
getPageNumber()
int
getPageSize()
Sort
getSort()
boolean
hasPrevious()
Pageable
next()
Pageable
previous()
void
setSort(Sort sort)
String
toString()
-
-
-
Constructor Detail
-
Pageable
public Pageable(int page, int size)
- Parameters:
page
- must not be less than one.size
- must not be less than one.
-
Pageable
public Pageable(int page, int size, Sort.Direction direction, String... properties)
-
Pageable
public Pageable(int page, int size, Sort sort)
-
-
Method Detail
-
get
public static Pageable get()
page=1,size=20- Returns:
-
getPageSize
public int getPageSize()
-
getPageNumber
public int getPageNumber()
-
getSort
public Sort getSort()
-
setSort
public void setSort(Sort sort)
-
getOffset
public int getOffset()
-
hasPrevious
public boolean hasPrevious()
-
next
public Pageable next()
-
previous
public Pageable previous()
-
first
public Pageable first()
-
-