Interface SpecificationPicker<S extends Slice<T>,​T>

  • Type Parameters:
    S - the type of the slice.
    T - the type of the paginated object.
    All Known Subinterfaces:
    LimitPicker<S,​T>, SizePicker<T>

    public interface SpecificationPicker<S extends Slice<T>,​T>
    An element of the Paginator DSL allowing to specify the specification that will be used to retrieve objects from the repository.
    • Method Detail

      • matching

        S matching​(Specification<T> spec)
        Restricts objects coming from the repository to ones matching the specification. This is a terminal operation of the paginator DSL.
        Parameters:
        spec - the specification that objects must match.
        Returns:
        the Slice or Page.
      • all

        S all()
        Do not restrict objects coming from the repository. This is a terminal operation of the paginator DSL.
        Returns:
        the Slice or Page.