Interface LimitPicker<S extends Slice<T>,T>
-
- Type Parameters:
S- the type of the slice.T- the type of the paginated object.
- All Superinterfaces:
SpecificationPicker<S,T>
- All Known Subinterfaces:
SizePicker<T>
public interface LimitPicker<S extends Slice<T>,T> extends SpecificationPicker<S,T>
An element of thePaginatorDSL allowing to specify a limit on the number of objects returned, in the case of an offset-based pagination.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpecificationPicker<S,T>limit(long limit)Specify a limit on the number of objects returned.-
Methods inherited from interface org.seedstack.business.pagination.dsl.SpecificationPicker
all, matching
-
-
-
-
Method Detail
-
limit
SpecificationPicker<S,T> limit(long limit)
Specify a limit on the number of objects returned.- Parameters:
limit- the limit.- Returns:
- the next operation of the paginator DSL, allowing to pick a specification for selecting objects returned from the repository.
-
-