|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cumulocity.sdk.client.GenericResourceImpl<T>
com.cumulocity.sdk.client.PagedCollectionResourceImpl<T>
public abstract class PagedCollectionResourceImpl<T extends BaseCollectionRepresentation>
| Field Summary |
|---|
| Fields inherited from class com.cumulocity.sdk.client.GenericResourceImpl |
|---|
restConnector, url |
| Constructor Summary | |
|---|---|
PagedCollectionResourceImpl(RestConnector restConnector,
String url)
Deprecated. |
|
PagedCollectionResourceImpl(RestConnector restConnector,
String url,
int pageSize)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
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. |
int |
hashCode()
|
| Methods inherited from class com.cumulocity.sdk.client.GenericResourceImpl |
|---|
getMediaType, getResponseClass |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public PagedCollectionResourceImpl(RestConnector restConnector,
String url)
public PagedCollectionResourceImpl(RestConnector restConnector,
String url,
int pageSize)
| Method Detail |
|---|
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
public T get()
throws SDKException
PagedCollectionResource
get in interface GenericResource<T extends BaseCollectionRepresentation>get in interface PagedCollectionResource<T extends BaseCollectionRepresentation>get in class GenericResourceImpl<T extends BaseCollectionRepresentation>SDKException
public T get(int pageSize)
throws SDKException
PagedCollectionResource
get in interface PagedCollectionResource<T extends BaseCollectionRepresentation>pageSize - - page size
SDKExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||