|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pageable
Abstract interface for pagination information.
Method Summary | |
---|---|
Pageable |
first()
Returns the Pageable requesting the first page. |
int |
getOffset()
Returns the offset to be taken according to the underlying page and page size. |
int |
getPageNumber()
Returns the page to be returned. |
int |
getPageSize()
Returns the number of items to be returned. |
Sort |
getSort()
Returns the sorting parameters. |
boolean |
hasPrevious()
Returns whether there's a previous Pageable we can access from the current one. |
Pageable |
next()
Returns the Pageable requesting the next Page . |
Pageable |
previousOrFirst()
Returns the previous Pageable or the first Pageable if the current one already is the first one. |
Method Detail |
---|
int getPageNumber()
int getPageSize()
int getOffset()
Sort getSort()
Pageable next()
Pageable
requesting the next Page
.
Pageable previousOrFirst()
Pageable
or the first Pageable
if the current one already is the first one.
Pageable first()
Pageable
requesting the first page.
boolean hasPrevious()
Pageable
we can access from the current one. Will return
false in case the current Pageable
already refers to the first page.
|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |