| Constructor and Description |
|---|
PageableBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSorting(String key,
SortingOrder order)
Add a new sorting object.
|
Pageable |
build()
Uses the data in the builder to construct a new Pageable
|
void |
setPage(int page)
Sets the current page.
|
void |
setPerPage(int perPage)
Sets the amount of entries per page.
|
public void addSorting(String key, SortingOrder order)
key - what key to use for searchingorder - in what direction should this be sortedpublic void setPage(int page)
page - current pagepublic void setPerPage(int perPage)
perPage - entries per pagepublic Pageable build()
Copyright © 2020. All rights reserved.