Class IndexBasedCollectionEnumeratorFactory<T extends ResourceBase,TResourceCollection extends ResourceCollection<T>>
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.BasePartnerComponentString
com.microsoft.store.partnercenter.factory.IndexBasedCollectionEnumeratorFactory<T,TResourceCollection>
- All Implemented Interfaces:
IResourceCollectionEnumeratorFactory<TResourceCollection>,IPartnerComponent<String>
public class IndexBasedCollectionEnumeratorFactory<T extends ResourceBase,TResourceCollection extends ResourceCollection<T>> extends BasePartnerComponentString implements IResourceCollectionEnumeratorFactory<TResourceCollection>
Factory method for creating a new instance of index based collection enumerator.
-
Constructor Summary
Constructors Constructor Description IndexBasedCollectionEnumeratorFactory(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<TResourceCollection> responseType)Initializes a new instance of the IndexBasedCollectionEnumeratorFactory class. -
Method Summary
Modifier and Type Method Description IResourceCollectionEnumerator<TResourceCollection>create(TResourceCollection resourceCollection)Creates a index based collection enumerator capable of traversing resources that uses offset and page size for pagination.Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartner
-
Constructor Details
-
IndexBasedCollectionEnumeratorFactory
public IndexBasedCollectionEnumeratorFactory(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<TResourceCollection> responseType)Initializes a new instance of the IndexBasedCollectionEnumeratorFactory class.- Parameters:
rootPartnerOperations- The root partner operations instance.responseType- The type of resource.
-
-
Method Details
-
create
public IResourceCollectionEnumerator<TResourceCollection> create(TResourceCollection resourceCollection)Creates a index based collection enumerator capable of traversing resources that uses offset and page size for pagination.- Specified by:
createin interfaceIResourceCollectionEnumeratorFactory<T extends ResourceBase>- Parameters:
resourceCollection- The initial resource collection to start from.- Returns:
- A customer collection enumerator capable of traversing customers.
-