KeysetPageable, Pageablepublic class KeysetPageRequest extends PageRequest implements KeysetPageable
PageRequest but with support for keyset pagination.| Constructor | Description |
|---|---|
KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage,
Pageable pageable) |
Construct a page request from a pageable with an optional keyset page that may be used for keyset pagination.
|
KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage,
Sort sort) |
Construct a page request representing the current page via a keyset page and a sort specification.
|
KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage,
Sort sort,
int page,
int pageSize) |
Construct a page request with an optional keyset page that may be used for keyset pagination.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
KeysetPageable |
first() |
|
com.blazebit.persistence.KeysetPage |
getKeysetPage() |
Returns the keyset page information.
|
int |
hashCode() |
|
KeysetPageable |
next() |
|
KeysetPageable |
previous() |
|
KeysetPageable |
previousOrFirst() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOffset, getPageNumber, getPageSize, getSort, hasPreviousgetOffset, getPageNumber, getPageSize, getSort, hasPrevious, toStringpublic KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage,
Sort sort,
int page,
int pageSize)
keysetPage - The keyset pagesort - The sort specificationpage - The page number, 0-basedpageSize - The number of elements per pagepublic KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage,
Pageable pageable)
keysetPage - The keyset pagepageable - The pageablepublic KeysetPageRequest(com.blazebit.persistence.KeysetPage keysetPage,
Sort sort)
keysetPage - The keyset pagesort - The sort specificationpublic com.blazebit.persistence.KeysetPage getKeysetPage()
KeysetPageablegetKeysetPage in interface KeysetPageablepublic KeysetPageable next()
Pageablenext in interface KeysetPageablenext in interface Pageablenext in class PageRequestpublic KeysetPageable previous()
PageablePage or null if the current one already is the first one.previous in interface KeysetPageableprevious in interface Pageableprevious in class PageRequestpublic KeysetPageable previousOrFirst()
PageablePage or the first if the current one already is the first one.previousOrFirst in interface KeysetPageablepreviousOrFirst in interface PageablepreviousOrFirst in class PageRequestpublic KeysetPageable first()
Pageablefirst in interface KeysetPageablefirst in interface Pageablefirst in class PageRequestpublic boolean equals(java.lang.Object o)
equals in class PageRequestpublic int hashCode()
hashCode in class PageRequestCopyright © 2014–2018 Blazebit. All rights reserved.