BaseResourceCollectionEnumerator<T> Class
- java.
lang. Object - com.
microsoft. store. partnercenter. BasePartnerComponent<TContext> - com.
microsoft. store. partnercenter. BasePartnerComponentString - com.
microsoft. store. partnercenter. enumerators. BaseResourceCollectionEnumerator<T>
- com.
- com.
- com.
Type Parameters
- T
Implements
public abstract class BaseResourceCollectionEnumerator<T> extends BasePartnerComponentString implements IResourceCollectionEnumerator<T>
Base implementation for resource collection enumerators.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | BaseResourceCollectionEnumerator(IPartner rootPartnerOperations, T resourceCollection, ObjectMapper resourceCollectionConverter, TypeReference<T> responseType) |
Initializes a new instance of the Base |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| T |
getCurrent()
The current resource collection. |
| boolean |
hasValue()
Gets whether the current result collection has a value or not. |
| boolean |
isFirstPage()
Gets whether the current collection is the first page of results or not. |
| boolean |
isLastPage()
Gets whether the current collection is the last page of results or not. |
| void |
next()
Retrieves the next result set. |
| void |
next(IRequestContext context)
Retrieves the next result set. |
| void |
previous()
Retrieves the previous result set. |
| void |
previous(IRequestContext context)
Retrieves the previous result set. |
Inherited Members
Constructor Details
BaseResourceCollectionEnumerator
protected BaseResourceCollectionEnumerator(IPartner rootPartnerOperations, T resourceCollection, ObjectMapper resourceCollectionConverter, TypeReference
Initializes a new instance of the BaseResourceCollectionEnumerator class.
Parameters:
Method Details
getCurrent
public T getCurrent()
The current resource collection.
Returns:
hasValue
public boolean hasValue()
Gets whether the current result collection has a value or not. This indicates if the collection has been fully enumerated or not.
Returns:
isFirstPage
public boolean isFirstPage()
Gets whether the current collection is the first page of results or not.
Returns:
isLastPage
public boolean isLastPage()
Gets whether the current collection is the last page of results or not.
Returns:
next
public void next()
Retrieves the next result set.
next
public void next(IRequestContext context)
Retrieves the next result set.
Parameters:
previous
public void previous()
Retrieves the previous result set.
previous
public void previous(IRequestContext context)
Retrieves the previous result set.
Parameters: