java.lang.Object
org.springframework.data.domain.AbstractPageRequest
org.springframework.data.domain.PageRequest
com.codingapi.springboot.framework.dto.request.PageRequest
All Implemented Interfaces:
Serializable, org.springframework.data.domain.Pageable

public class PageRequest extends org.springframework.data.domain.PageRequest
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    PageRequest(int current, int pageSize, org.springframework.data.domain.Sort sort)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.PageRequest
     
    int
     
    long
     
    int
     
    int
     
    org.springframework.data.domain.Sort
     
    org.springframework.data.domain.Sort
    getSortOr(org.springframework.data.domain.Sort sort)
     
    boolean
     
    boolean
     
    boolean
     
    org.springframework.data.domain.PageRequest
     
    org.springframework.data.domain.PageRequest
     
    org.springframework.data.domain.Pageable
     
    void
    setCurrent(int current)
     
    void
    setPageSize(int pageSize)
     
    Optional<org.springframework.data.domain.Pageable>
     

    Methods inherited from class org.springframework.data.domain.PageRequest

    equals, hashCode, of, of, of, ofSize, toString, withPage, withSort, withSort

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PageRequest

      public PageRequest(int current, int pageSize, org.springframework.data.domain.Sort sort)
    • PageRequest

      public PageRequest()
  • Method Details

    • getCurrent

      public int getCurrent()
    • setCurrent

      public void setCurrent(int current)
    • getPageSize

      public int getPageSize()
      Specified by:
      getPageSize in interface org.springframework.data.domain.Pageable
      Overrides:
      getPageSize in class org.springframework.data.domain.AbstractPageRequest
    • setPageSize

      public void setPageSize(int pageSize)
    • getSort

      public org.springframework.data.domain.Sort getSort()
      Specified by:
      getSort in interface org.springframework.data.domain.Pageable
      Overrides:
      getSort in class org.springframework.data.domain.PageRequest
    • next

      public org.springframework.data.domain.PageRequest next()
      Specified by:
      next in interface org.springframework.data.domain.Pageable
      Overrides:
      next in class org.springframework.data.domain.PageRequest
    • previous

      public org.springframework.data.domain.PageRequest previous()
      Overrides:
      previous in class org.springframework.data.domain.PageRequest
    • first

      public org.springframework.data.domain.PageRequest first()
      Specified by:
      first in interface org.springframework.data.domain.Pageable
      Overrides:
      first in class org.springframework.data.domain.PageRequest
    • getPageNumber

      public int getPageNumber()
      Specified by:
      getPageNumber in interface org.springframework.data.domain.Pageable
      Overrides:
      getPageNumber in class org.springframework.data.domain.AbstractPageRequest
    • getOffset

      public long getOffset()
      Specified by:
      getOffset in interface org.springframework.data.domain.Pageable
      Overrides:
      getOffset in class org.springframework.data.domain.AbstractPageRequest
    • hasPrevious

      public boolean hasPrevious()
      Specified by:
      hasPrevious in interface org.springframework.data.domain.Pageable
      Overrides:
      hasPrevious in class org.springframework.data.domain.AbstractPageRequest
    • previousOrFirst

      public org.springframework.data.domain.Pageable previousOrFirst()
      Specified by:
      previousOrFirst in interface org.springframework.data.domain.Pageable
      Overrides:
      previousOrFirst in class org.springframework.data.domain.AbstractPageRequest
    • isPaged

      public boolean isPaged()
    • isUnpaged

      public boolean isUnpaged()
    • getSortOr

      public org.springframework.data.domain.Sort getSortOr(org.springframework.data.domain.Sort sort)
    • toOptional

      public Optional<org.springframework.data.domain.Pageable> toOptional()