Package | Description |
---|---|
org.seedstack.business.pagination.dsl |
Provides a fluent DSL to paginate domain objects.
|
org.seedstack.crud.rest |
Modifier and Type | Interface and Description |
---|---|
interface |
LimitPicker<S extends Slice<T>,T>
An element of the
Paginator DSL allowing to specify a limit on the number of objects
returned, in the case of an offset-based pagination. |
interface |
SizePicker<T>
An element of the
Paginator DSL allowing to specify the size of the page in the case of
page-based pagination. |
Modifier and Type | Method and Description |
---|---|
SpecificationPicker<S,T> |
LimitPicker.limit(long limit)
Specify a limit on the number of objects returned.
|
default SpecificationPicker<Page<T>,T> |
SizePicker.ofSize(long size)
Specify the size of the page.
|
Modifier and Type | Method and Description |
---|---|
default <S extends Slice<A>> |
ReadResource.applyLimit(PaginationParams params,
LimitPicker<S,A> limitPicker)
Apply a pagination limit if present in the given pagination parameters.
|
Copyright © 2013-2018–2019 SeedStack. All rights reserved.