com.foxinmy.weixin4j.model.paging
Class Pageable

java.lang.Object
  extended by 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

Constructor Summary
Pageable(int page, int size)
           
Pageable(int page, int size, Sort.Direction direction, String... properties)
           
Pageable(int page, int size, Sort sort)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014–2017. All rights reserved.