T - a domain type like User@Value.Immutable
public interface Pagination<T>
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getList() |
Integer |
getNextPage()
Will be null once we have read the last page available
|
int |
getPage() |
int |
getPerPage() |
Integer |
getPreviousPage() |
int |
getTotalPages() |
static <T> Pagination<T> |
of(PaginatedList paginatedList,
List<T> elements) |
List<T> getList()
int getPerPage()
int getTotalPages()
@Nullable Integer getNextPage()
@Nullable Integer getPreviousPage()
int getPage()
static <T> Pagination<T> of(PaginatedList paginatedList, List<T> elements)