public class PaginatedResult<T>
extends java.lang.Object
| Constructor and Description |
|---|
PaginatedResult(java.util.List<T> data,
int totalCount,
boolean hasMore)
Creates a PaginatedResult.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
getData()
Returns the current 'page' of data.
|
int |
getTotalCount()
Returns the total number of related items.
|
boolean |
hasMore()
Returns whether or not there are more pages of related items.
|
public PaginatedResult(java.util.List<T> data, int totalCount, boolean hasMore)
data - the current page of datatotalCount - the total number of related itemshasMore - whether or not there are more related itemspublic int getTotalCount()
public boolean hasMore()
@NotNull public java.util.List<T> getData()