com.foxinmy.weixin4j.model.paging
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
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)
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()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014–2017. All rights reserved.