public class AssetTypePageIterator extends Object implements PageIterator<AssetTypes>
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
|
AssetTypes |
getPage(int pageNumber)
Returns the Asset Types at a requested page number
|
AssetTypes |
next()
Returns the next page of Asset Types
|
AssetTypes |
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 AssetTypes next() throws MindsphereException
next in interface PageIterator<AssetTypes>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AssetTypes previous() throws MindsphereException
previous in interface PageIterator<AssetTypes>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AssetTypes getPage(int pageNumber) throws MindsphereException
getPage in interface PageIterator<AssetTypes>MindsphereException - thrown if an error occurs while attempting to invoke the API