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 the Paginator DSL allowing to specify a limit on the number of objects returned, in the case of an offset-based pagination.
    • 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.