IndexBasedCollectionEnumeratorFactory<T,TResourceCollection> Class

Type Parameters

T
TResourceCollection

Implements

public class IndexBasedCollectionEnumeratorFactory<T,TResourceCollection> extends BasePartnerComponentString implements IResourceCollectionEnumeratorFactory<TResourceCollection>

Factory method for creating a new instance of index based collection enumerator.

Constructor Summary

Constructor Description
IndexBasedCollectionEnumeratorFactory(IPartner rootPartnerOperations, TypeReference<TResourceCollection> responseType)

Initializes a new instance of the IndexBasedCollectionEnumeratorFactory class.

Method Summary

Modifier and Type Method and Description
IResourceCollectionEnumerator<TResourceCollection> create(TResourceCollection resourceCollection)

Creates a index based collection enumerator capable of traversing resources that uses offset and page size for pagination.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

IndexBasedCollectionEnumeratorFactory

public IndexBasedCollectionEnumeratorFactory(IPartner rootPartnerOperations, TypeReference 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 create(TResourceCollection resourceCollection)

Creates a index based collection enumerator capable of traversing resources that uses offset and page size for pagination.

Parameters:

resourceCollection - The initial resource collection to start from.

Returns:

A customer collection enumerator capable of traversing customers.

Applies to