T - Type of the actual result.public class GenericPaginatedResult<T> extends Object implements PaginatedResult<T>
PaginatedResult.| Constructor and Description |
|---|
GenericPaginatedResult(Element element)
Create a paginated result from an XML
Element. |
| Modifier and Type | Method and Description |
|---|---|
T |
getEntries()
Get the entries of the current page.
|
int |
getNextPage()
Get the number of the next page.
|
int |
getPage()
Get the number of the current page.
|
int |
getPerPage()
Get the number of entries per page.
|
int |
getTotal()
Get the number of total results.
|
int |
getTotalPages()
Get the number of total pages.
|
boolean |
hasMorePages()
Check if the paginated result has more pages.
|
void |
setEntries(T entries) |
void |
setPage(int page) |
void |
setPerPage(int perPage) |
void |
setTotal(int total) |
void |
setTotalPages(int totalPages) |
public final T getEntries()
PaginatedResultgetEntries in interface PaginatedResult<T>public final void setEntries(T entries)
public final boolean hasMorePages()
PaginatedResulthasMorePages in interface PaginatedResult<T>public final int getNextPage()
PaginatedResultgetNextPage in interface PaginatedResult<T>public final int getTotal()
PaginatedResultgetTotal in interface PaginatedResult<T>public final void setTotal(int total)
public final int getPage()
PaginatedResultgetPage in interface PaginatedResult<T>public final void setPage(int page)
public final int getPerPage()
PaginatedResultgetPerPage in interface PaginatedResult<T>public final void setPerPage(int perPage)
public final int getTotalPages()
PaginatedResultgetTotalPages in interface PaginatedResult<T>public final void setTotalPages(int totalPages)
Copyright © 2012. All Rights Reserved.