|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.protocol.RestfulCollection<T>
public class RestfulCollection<T>
Data structure representing a Rest response.
| Constructor Summary | |
|---|---|
RestfulCollection(List<T> entry)
Creates a new RestfulCollection that includes a complete set of entries. |
|
RestfulCollection(List<T> entry,
int startIndex,
int totalResults)
Helper constructor for un-paged collection, Use RestfulCollection(java.util.List, int, int, int) in paginated context |
|
RestfulCollection(List<T> entry,
int startIndex,
int totalResults,
int itemsPerPage)
Create a paginated collection response. |
|
| Method Summary | |
|---|---|
List<T> |
getEntry()
|
int |
getItemsPerPage()
|
int |
getStartIndex()
|
int |
getTotalResults()
|
boolean |
isFiltered()
|
boolean |
isSorted()
|
boolean |
isUpdatedSince()
|
void |
setEntry(List<T> entry)
|
void |
setFiltered(boolean filtered)
|
void |
setItemsPerPage(int itemsPerPage)
|
void |
setSorted(boolean sorted)
|
void |
setStartIndex(int startIndex)
|
void |
setTotalResults(int totalResults)
|
void |
setUpdatedSince(boolean updatedSince)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestfulCollection(List<T> entry)
entry - a list of entries
public RestfulCollection(List<T> entry,
int startIndex,
int totalResults,
int itemsPerPage)
entry - paginated entriesstartIndex - the index corresponding to the first element of {entry}totalResults - the total size of the resultsetitemsPerPage - the size of the pagination, generally set to the user-specified count parameter. Clamped to the totalResults size automatically
public RestfulCollection(List<T> entry,
int startIndex,
int totalResults)
RestfulCollection(java.util.List, int, int, int) in paginated context
| Method Detail |
|---|
public List<T> getEntry()
public void setEntry(List<T> entry)
public int getStartIndex()
public void setStartIndex(int startIndex)
public int getTotalResults()
public void setItemsPerPage(int itemsPerPage)
public int getItemsPerPage()
public void setTotalResults(int totalResults)
public boolean isFiltered()
public void setFiltered(boolean filtered)
public boolean isSorted()
public void setSorted(boolean sorted)
public boolean isUpdatedSince()
public void setUpdatedSince(boolean updatedSince)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||