Interface PageSource<T>
-
- 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 fromcom.github.rutledgepaulv.pagingstreams.PageSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 givenpageable
.
-
-
-
Method Detail
-
fetch
org.springframework.data.domain.Page<T> fetch(org.springframework.data.domain.Pageable pageable)
Get a single page of results using the givenpageable
.- Parameters:
pageable
- a pageable requesting a particular page of results from the data store- Returns:
- the page of results
-
-