public static class RestClient.Pageable extends Object
| Constructor and Description |
|---|
Pageable(int page,
int pageSize)
Creates a new pageable without any sorting
|
Pageable(int page,
int pageSize,
boolean reset)
Creates a new pageable without any sorting
|
Pageable(int page,
int pageSize,
String field,
Sort.OrderEnum order)
Creates a new pageable
|
Pageable(int page,
int pageSize,
String field,
Sort.OrderEnum order,
boolean reset)
Creates a new pageable
|
| Modifier and Type | Method and Description |
|---|---|
RestClient.Pageable |
addSort(String field,
Sort.OrderEnum direction)
Adds a sort criteria for the given field.
|
String |
getSortQuery()
Creates a query string (matrix-parameter style) containing all the sort criteria
|
public Pageable(int page,
int pageSize)
page - the zero-indexed page numberpageSize - the size of a pagepublic Pageable(int page,
int pageSize,
boolean reset)
page - the zero-indexed page numberpageSize - the size of a pagereset - set to true to reset current sort criteriapublic Pageable(int page,
int pageSize,
String field,
Sort.OrderEnum order)
page - the zero-indexed page numberpageSize - the size of a pagefield - the field to sortorder - the direction to sortpublic Pageable(int page,
int pageSize,
String field,
Sort.OrderEnum order,
boolean reset)
page - the zero-indexed page numberpageSize - the size of a pagefield - the field to sortorder - the direction to sortreset - set to true to reset current sort criteriapublic RestClient.Pageable addSort(String field, Sort.OrderEnum direction)
field - the field to sortdirection - the direction to sortRestClient.Pageablepublic String getSortQuery()
Copyright © 2011–2023 aiticon GmbH. All rights reserved.