public class PagingAndSorting
extends java.lang.Object
implements org.springframework.data.domain.Pageable
Pageable
that is URL-aware.Constructor and Description |
---|
PagingAndSorting(RepositoryRestConfiguration config,
org.springframework.data.domain.PageRequest pageRequest) |
Modifier and Type | Method and Description |
---|---|
PagingAndSorting |
addSortParameters(org.springframework.web.util.UriComponentsBuilder urib)
Add the current sort parameters to the URI.
|
int |
getOffset() |
int |
getPageNumber() |
int |
getPageSize() |
org.springframework.data.domain.Sort |
getSort() |
public PagingAndSorting(RepositoryRestConfiguration config, org.springframework.data.domain.PageRequest pageRequest)
public PagingAndSorting addSortParameters(org.springframework.web.util.UriComponentsBuilder urib)
urib
- public int getPageNumber()
getPageNumber
in interface org.springframework.data.domain.Pageable
public int getPageSize()
getPageSize
in interface org.springframework.data.domain.Pageable
public int getOffset()
getOffset
in interface org.springframework.data.domain.Pageable
public org.springframework.data.domain.Sort getSort()
getSort
in interface org.springframework.data.domain.Pageable