public class AssetTypePageIterator extends Object implements PageIterator<AssetTypeListResource>
DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE| Modifier and Type | Method and Description |
|---|---|
static AssetTypePageIterator |
getInstance(AssettypeClient assetTypeClient)
Returns an AssetTypePageIterator instance initialized with the assetTypeClient
|
static AssetTypePageIterator |
getInstance(AssettypeClient assetTypeClient,
Integer pageSize)
Returns an AssetTypePageIterator instance initialized with the assetTypeClient
|
static AssetTypePageIterator |
getInstance(AssettypeClient assetTypeClient,
Integer pageSize,
Integer pageNumber)
Returns an AssetTypePageIterator instance initialized with the assetTypeClient
|
AssetTypeListResource |
getPage(int pageNumber)
Returns the Asset Types at a requested page number
|
AssetTypeListResource |
next()
Returns the next page of Asset Types
|
AssetTypeListResource |
previous()
Returns the previous page of Asset Types
|
public static AssetTypePageIterator getInstance(AssettypeClient assetTypeClient) throws MindsphereClientException
assetTypeClient - assetTypeClient that will be used to make API calls to fetch the asset typesMindsphereClientException - thrown if an error occurs while creating an instancepublic static AssetTypePageIterator getInstance(AssettypeClient assetTypeClient, Integer pageSize) throws MindsphereClientException
assetTypeClient - assetTypeClient that will be used to make API calls to fetch the asset 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 AssetTypePageIterator getInstance(AssettypeClient assetTypeClient, Integer pageSize, Integer pageNumber) throws MindsphereClientException
assetTypeClient - assetTypeClient that will be used to make API calls to fetch the asset 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 AssetTypeListResource next() throws MindsphereException
next in interface PageIterator<AssetTypeListResource>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AssetTypeListResource previous() throws MindsphereException
previous in interface PageIterator<AssetTypeListResource>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AssetTypeListResource getPage(int pageNumber) throws MindsphereException
getPage in interface PageIterator<AssetTypeListResource>MindsphereException - thrown if an error occurs while attempting to invoke the API