public class ApiListResponse<T> extends ApiResponse<List<T>>
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIsList() |
boolean |
getPaged() |
int |
getStartIndex() |
int |
getTotalPages() |
static <T> ApiListResponse<T> |
nonPagedSuccess(Iterable<T> response) |
static <T> ApiListResponse<T> |
nonPagedSuccess(List<T> response) |
static <T> ApiListResponse<T> |
pagedSuccess(Iterable<T> response,
int startIndex,
int totalPages) |
static <T> ApiListResponse<T> |
pagedSuccess(List<T> response,
int startIndex,
int totalPages) |
void |
setIsList(boolean isList) |
void |
setPaged(boolean paged) |
void |
setStartIndex(int startIndex) |
void |
setTotalPages(int totalPages) |
public boolean getIsList()
public void setIsList(boolean isList)
public boolean getPaged()
public void setPaged(boolean paged)
public int getStartIndex()
public void setStartIndex(int startIndex)
public int getTotalPages()
public void setTotalPages(int totalPages)
public static <T> ApiListResponse<T> pagedSuccess(List<T> response, int startIndex, int totalPages)
public static <T> ApiListResponse<T> pagedSuccess(Iterable<T> response, int startIndex, int totalPages)
public static <T> ApiListResponse<T> nonPagedSuccess(Iterable<T> response)
public static <T> ApiListResponse<T> nonPagedSuccess(List<T> response)
Copyright © 2019. All rights reserved.