|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cumulocity.sdk.client.EmptyPagedCollectionResource<T>
public class EmptyPagedCollectionResource<T extends BaseCollectionRepresentation>
| Constructor Summary | |
|---|---|
EmptyPagedCollectionResource(Class<T> type)
|
|
| Method Summary | |
|---|---|
T |
get()
The method returns the first page. |
T |
get(int pageSize)
The method returns the first page. |
T |
getNextPage(BaseCollectionRepresentation collectionRepresentation)
The method returns the next page from the collection. |
T |
getPage(BaseCollectionRepresentation collectionRepresentation,
int pageNumber)
The method returns the specified page number. |
T |
getPage(BaseCollectionRepresentation collectionRepresentation,
int pageNumber,
int pageSize)
The method returns the specified page number. |
T |
getPreviousPage(BaseCollectionRepresentation collectionRepresentation)
This method returns the previous page in the collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyPagedCollectionResource(Class<T> type)
| Method Detail |
|---|
public T get()
throws SDKException
PagedCollectionResource
get in interface GenericResource<T extends BaseCollectionRepresentation>get in interface PagedCollectionResource<T extends BaseCollectionRepresentation>SDKException
public T get(int pageSize)
throws SDKException
PagedCollectionResource
get in interface PagedCollectionResource<T extends BaseCollectionRepresentation>pageSize - - page size
SDKException
public T getPage(BaseCollectionRepresentation collectionRepresentation,
int pageNumber)
throws SDKException
PagedCollectionResource
getPage in interface PagedCollectionResource<T extends BaseCollectionRepresentation>collectionRepresentation - It uses the BaseCollectionRepresentation.getSelf() URL to find the collection.pageNumber - - page number
SDKException
public T getPage(BaseCollectionRepresentation collectionRepresentation,
int pageNumber,
int pageSize)
throws SDKException
PagedCollectionResource
getPage in interface PagedCollectionResource<T extends BaseCollectionRepresentation>collectionRepresentation - It uses the BaseCollectionRepresentation.getSelf() URL to find the collection.pageNumber - - page numberpageSize - - page size
SDKException
public T getNextPage(BaseCollectionRepresentation collectionRepresentation)
throws SDKException
PagedCollectionResource
getNextPage in interface PagedCollectionResource<T extends BaseCollectionRepresentation>collectionRepresentation - It uses the BaseCollectionRepresentation.getNext() URL to find the collection.
SDKException
public T getPreviousPage(BaseCollectionRepresentation collectionRepresentation)
throws SDKException
PagedCollectionResource
getPreviousPage in interface PagedCollectionResource<T extends BaseCollectionRepresentation>collectionRepresentation - - It uses the BaseCollectionRepresentation.getPrevious() URL to find the collection.
SDKException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||