public interface Paginator
Repository. The result can either be a Slice or a
Page.
It supports page-based, offset-based and key-based pagination.| Modifier and Type | Method and Description |
|---|---|
<T> SlicePaginationPicker<T> |
paginate(Iterable<T> iterable)
Initiate a pagination operation using an
Iterable as source. |
<A extends AggregateRoot<I>,I> |
paginate(Repository<A,I> repository)
Initiate a pagination operation using the specified repository.
|
<T> SlicePaginationPicker<T> |
paginate(Stream<T> stream)
Initiate a pagination operation using a stream of objects as source.
|
<T> SlicePaginationPicker<T> |
paginate(T object)
Initiate a pagination operation using a unique object as source.
|
<A extends AggregateRoot<I>,I> RepositoryOptionsPicker<A,I> paginate(Repository<A,I> repository)
A - the aggregate root type that is paginated.I - the aggregate root identifier type.repository - the repository where the domain objects come from.<T> SlicePaginationPicker<T> paginate(T object)
T - the type of the source object.object - the source object.<T> SlicePaginationPicker<T> paginate(Stream<T> stream)
T - the type of the source object.stream - the source stream.<T> SlicePaginationPicker<T> paginate(Iterable<T> iterable)
Iterable as source.T - the type of the source object.iterable - the source iterable.Copyright © 2013-2018–2019 SeedStack. All rights reserved.