|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.lastfm.api.model.paginatedresult.GenericPaginatedResult<T>
T - Type of the actual result.public class GenericPaginatedResult<T>
Default generic implementation of a PaginatedResult.
| Constructor Summary | |
|---|---|
GenericPaginatedResult(org.w3c.dom.Element element)
Create a paginated result from an XML Element. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericPaginatedResult(org.w3c.dom.Element element)
Element.
element - The element to convert.| Method Detail |
|---|
public final T getEntries()
PaginatedResult
getEntries in interface PaginatedResult<T>public final void setEntries(T entries)
public final boolean hasMorePages()
PaginatedResult
hasMorePages in interface PaginatedResult<T>public final int getNextPage()
PaginatedResult
getNextPage in interface PaginatedResult<T>public final int getTotal()
PaginatedResult
getTotal in interface PaginatedResult<T>public final void setTotal(int total)
public final int getPage()
PaginatedResult
getPage in interface PaginatedResult<T>public final void setPage(int page)
public final int getPerPage()
PaginatedResult
getPerPage in interface PaginatedResult<T>public final void setPerPage(int perPage)
public final int getTotalPages()
PaginatedResult
getTotalPages in interface PaginatedResult<T>public final void setTotalPages(int totalPages)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||