Class PageRequest
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
ConstructorsConstructorDescriptionPageRequest(int current, int pageSize, org.springframework.data.domain.Sort sort) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.PageRequestfirst()intlongintintorg.springframework.data.domain.SortgetSort()org.springframework.data.domain.SortgetSortOr(org.springframework.data.domain.Sort sort) booleanbooleanisPaged()booleanorg.springframework.data.domain.PageRequestnext()org.springframework.data.domain.PageRequestprevious()org.springframework.data.domain.PageablevoidsetCurrent(int current) voidsetPageSize(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
-
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:
getPageSizein interfaceorg.springframework.data.domain.Pageable- Overrides:
getPageSizein classorg.springframework.data.domain.AbstractPageRequest
-
setPageSize
public void setPageSize(int pageSize) -
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSortin interfaceorg.springframework.data.domain.Pageable- Overrides:
getSortin classorg.springframework.data.domain.PageRequest
-
next
public org.springframework.data.domain.PageRequest next()- Specified by:
nextin interfaceorg.springframework.data.domain.Pageable- Overrides:
nextin classorg.springframework.data.domain.PageRequest
-
previous
public org.springframework.data.domain.PageRequest previous()- Overrides:
previousin classorg.springframework.data.domain.PageRequest
-
first
public org.springframework.data.domain.PageRequest first()- Specified by:
firstin interfaceorg.springframework.data.domain.Pageable- Overrides:
firstin classorg.springframework.data.domain.PageRequest
-
getPageNumber
public int getPageNumber()- Specified by:
getPageNumberin interfaceorg.springframework.data.domain.Pageable- Overrides:
getPageNumberin classorg.springframework.data.domain.AbstractPageRequest
-
getOffset
public long getOffset()- Specified by:
getOffsetin interfaceorg.springframework.data.domain.Pageable- Overrides:
getOffsetin classorg.springframework.data.domain.AbstractPageRequest
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceorg.springframework.data.domain.Pageable- Overrides:
hasPreviousin classorg.springframework.data.domain.AbstractPageRequest
-
previousOrFirst
public org.springframework.data.domain.Pageable previousOrFirst()- Specified by:
previousOrFirstin interfaceorg.springframework.data.domain.Pageable- Overrides:
previousOrFirstin classorg.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
-