| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | PagingLoadResponse(List<T>
the list of items of type T to be included in the response; must not be null items, int the total number of items available in the data source totalItemCount)Constructs a new load response containing the items to display for the requested page and the total number of available items. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the items in the empty response T> PagingLoadResponse | Returns: an empty paging load responseAn empty response with no items and no total item count. |
| public final List | |
| public final int | Returns: the total number of itemsRetrieves the total count of items contained in the response. |
| items | back to summary |
|---|---|
| private final List<T> items | |
| totalItemCount | back to summary |
|---|---|
| private final int totalItemCount | |
| PagingLoadResponse | back to summary |
|---|---|
| public PagingLoadResponse(List<T> items, int totalItemCount) Constructs a new load response containing the items to display for the requested page and the total number of available items.
| |
| emptyResponse | back to summary |
|---|---|
| public static <T> PagingLoadResponse An empty response with no items and no total item count. This is useful when some preconditions for running a query are not met. Then the loader can simply return this empty response.
| |
| getItems | back to summary |
|---|---|
| public final List Retrieves the list of items contained in the response.
| |
| getTotalItemCount | back to summary |
|---|---|
| public final int getTotalItemCount() Retrieves the total count of items contained in the response.
| |