Interface SizePicker<T>

  • Type Parameters:
    T - the type of the paginated object.
    All Superinterfaces:
    LimitPicker<Page<T>,​T>, SpecificationPicker<Page<T>,​T>

    public interface SizePicker<T>
    extends LimitPicker<Page<T>,​T>
    An element of the Paginator DSL allowing to specify the size of the page in the case of page-based pagination.
    • Method Detail

      • ofSize

        default SpecificationPicker<Page<T>,​T> ofSize​(long size)
        Specify the size of the page.
        Parameters:
        size - the size of a page.
        Returns:
        the next operation of the paginator DSL, allowing to pick a specification for selecting objects returned from the repository.