public abstract class PagedResultBase<T> extends Base implements PagedResult<T>
| Modifier and Type | Field and Description |
|---|---|
protected Long |
count |
protected Long |
limit |
protected Long |
offset |
protected List<T> |
results |
protected Long |
total |
| Modifier | Constructor and Description |
|---|---|
protected |
PagedResultBase(Long offset,
Long limit,
Long total,
List<T> results,
Long count) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getCount()
The actual number of results returned.
|
Long |
getLimit()
The limit supplied by the client or the server default.
|
Long |
getOffset()
The offset supplied by the client or the server default.
|
List<T> |
getResults()
List of results.
|
Long |
getTotal()
The total number of results matching the request.
|
Long |
size()
Deprecated.
use
getCount() instead |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPageIndex, getTotalPages, head, isFirst, isLastprotected final Long offset
protected final Long limit
protected final Long total
protected final Long count
public Long getOffset()
getOffset in interface PagedResult<T>public Long getLimit()
getLimit in interface PagedResult<T>@Deprecated public Long size()
getCount() insteadsize in interface PagedResult<T>public Long getCount()
getCount in interface PagedResult<T>public Long getTotal()
getTotal in interface PagedResult<T>public List<T> getResults()
getCount() is not equal
to getTotal() the container contains only a subset of all
elements that match the request.getResults in interface PagedResult<T>getCount() elements matching the request