Class IndexBasedCollectionEnumerator<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.enumerators.BaseResourceCollectionEnumerator<TResourceCollection>
com.microsoft.store.partnercenter.enumerators.IndexBasedCollectionEnumerator<T,TResourceCollection>
- All Implemented Interfaces:
IResourceCollectionEnumerator<TResourceCollection>,IPartnerComponent<String>
public class IndexBasedCollectionEnumerator<T extends ResourceBase,TResourceCollection extends ResourceCollection<T>> extends BaseResourceCollectionEnumerator<TResourceCollection>
Enumerator for index based pagination Index based - Paged query where index and page size is used. The type of
resource /// The type of resource collection.
-
Constructor Summary
Constructors Constructor Description IndexBasedCollectionEnumerator(IPartner partnerOperations, TResourceCollection pagedResourceCollection, com.fasterxml.jackson.databind.ObjectMapper resourceCollectionConverter, com.fasterxml.jackson.core.type.TypeReference<TResourceCollection> responseType)Initializes a new instance of the IndexBasedCollectionEnumerator class. -
Method Summary
Methods inherited from class com.microsoft.store.partnercenter.enumerators.BaseResourceCollectionEnumerator
getCurrent, hasValue, isFirstPage, isLastPage, next, next, previous, previousMethods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartner
-
Constructor Details
-
IndexBasedCollectionEnumerator
public IndexBasedCollectionEnumerator(IPartner partnerOperations, TResourceCollection pagedResourceCollection, com.fasterxml.jackson.databind.ObjectMapper resourceCollectionConverter, com.fasterxml.jackson.core.type.TypeReference<TResourceCollection> responseType)Initializes a new instance of the IndexBasedCollectionEnumerator class.- Parameters:
partnerOperations- A partner operations instance.pagedResourceCollection- The paged resource collection to enumerate from.resourceCollectionConverter- The resource collection converter.responseType- The type of resource collection.
-