public class AspectTypePageIterator extends Object implements PageIterator<AspectTypes>
DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE| Modifier and Type | Method and Description |
|---|---|
static AspectTypePageIterator |
getInstance(AspectTypeClient aspectTypeClient)
Returns an AspectTypePageIterator instance initialized with the aspectTypeClient
|
static AspectTypePageIterator |
getInstance(AspectTypeClient aspectTypeClient,
Integer pageSize)
Returns an AspectTypePageIterator instance initialized with the aspectTypeClient
|
static AspectTypePageIterator |
getInstance(AspectTypeClient aspectTypeClient,
Integer pageSize,
Integer pageNumber)
Returns an AspectTypePageIterator instance initialized with the aspectTypeClient
|
AspectTypes |
getPage(int pageNumber)
Returns the Aspect Types at a requested page number
|
AspectTypes |
next()
Returns the next page of Aspect Types
|
AspectTypes |
previous()
Returns the previous page of Aspect Types
|
public static AspectTypePageIterator getInstance(AspectTypeClient aspectTypeClient) throws MindsphereClientException
aspectTypeClient - aspectTypeClient that will be used to make API calls to fetch the aspect typesMindsphereClientException - thrown if an error occurs while creating an instancepublic static AspectTypePageIterator getInstance(AspectTypeClient aspectTypeClient, Integer pageSize) throws MindsphereClientException
aspectTypeClient - aspectTypeClient that will be used to make API calls to fetch the aspect typespageSize - number of records that should be available in each page. Default is 2000MindsphereClientException - thrown if an error occurs while creating an instance with invalid page sizepublic static AspectTypePageIterator getInstance(AspectTypeClient aspectTypeClient, Integer pageSize, Integer pageNumber) throws MindsphereClientException
aspectTypeClient - aspectTypeClient that will be used to make API calls to fetch the aspect typespageSize - number of records that should be available in each page. Default is 2000pageNumber - Page number to be fetched. Default is -1MindsphereClientException - thrown if an error occurs while creating an instance with invalid page sizepublic AspectTypes next() throws MindsphereException
next in interface PageIterator<AspectTypes>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AspectTypes previous() throws MindsphereException
previous in interface PageIterator<AspectTypes>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AspectTypes getPage(int pageNumber) throws MindsphereException
getPage in interface PageIterator<AspectTypes>MindsphereException - thrown if an error occurs while attempting to invoke the API