Class AbstractPageRequest

java.lang.Object
com.power4j.fist.data.domain.AbstractPageRequest
All Implemented Interfaces:
Pageable
Direct Known Subclasses:
PageRequest

public abstract class AbstractPageRequest extends Object implements Pageable
Since:
1.0
Author:
CJ (power4j@outlook.com)
  • Constructor Details

    • AbstractPageRequest

      protected AbstractPageRequest(int pageNumber, int pageSize)
  • Method Details

    • getPageNumber

      public int getPageNumber()
      Description copied from interface: Pageable
      页码
      Specified by:
      getPageNumber in interface Pageable
      Returns:
      返回页码.
    • getPageSize

      public int getPageSize()
      Description copied from interface: Pageable
      页大小
      Specified by:
      getPageSize in interface Pageable
      Returns:
      返回页大小
    • hasPrevious

      public boolean hasPrevious()
      Description copied from interface: Pageable
      检查是否有前一页
      Specified by:
      hasPrevious in interface Pageable
      Returns:
      true 表示可以向前翻页
    • previousOrFirst

      public Pageable previousOrFirst()
      Description copied from interface: Pageable
      翻页,前一页或者第一页
      Specified by:
      previousOrFirst in interface Pageable
      Returns:
      Pageable
    • previous

      public abstract PageRequest previous()
      Returns the Pageable requesting the previous Page.
      Returns:
      PageRequest