Type Parameters:
T - the type of the elements that will be returned in each page
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PageSource<T>
Adapted from com.github.rutledgepaulv.pagingstreams.PageSource
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<T>
    fetch(org.springframework.data.domain.Pageable pageable)
    Get a single page of results using the given pageable.
  • Method Details

    • fetch

      org.springframework.data.domain.Page<T> fetch(org.springframework.data.domain.Pageable pageable)
      Get a single page of results using the given pageable.
      Parameters:
      pageable - a pageable requesting a particular page of results from the data store
      Returns:
      the page of results