Package org.craftercms.studio.model.rest
Class PaginatedResultList<T>
java.lang.Object
org.craftercms.studio.model.rest.Result
org.craftercms.studio.model.rest.ResultList<T>
org.craftercms.studio.model.rest.PaginatedResultList<T>
- Type Parameters:
T- the entity type
A paginated
ResultList.- Author:
- Dejan Brkic, avasquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLimit()Returns the number of items in the result list.intReturns the offset in the total of results this result list starts.longgetTotal()Returns the total of results.voidsetLimit(int limit) Sets the number of items in the result list.voidsetOffset(int offset) Sets the offset in the total of results this result list starts.voidsetTotal(long total) Sets the total of results.Methods inherited from class org.craftercms.studio.model.rest.ResultList
getEntities, setEntitiesMethods inherited from class org.craftercms.studio.model.rest.Result
getResponse, setResponse
-
Field Details
-
total
protected long total -
offset
protected int offset -
limit
protected int limit
-
-
Constructor Details
-
PaginatedResultList
public PaginatedResultList()
-
-
Method Details
-
getTotal
public long getTotal()Returns the total of results. -
setTotal
public void setTotal(long total) Sets the total of results. -
getOffset
public int getOffset()Returns the offset in the total of results this result list starts. -
setOffset
public void setOffset(int offset) Sets the offset in the total of results this result list starts. -
getLimit
public int getLimit()Returns the number of items in the result list. -
setLimit
public void setLimit(int limit) Sets the number of items in the result list.
-