Class BaseResourceCollectionEnumerator<T extends ResourceBaseWithLinks<StandardResourceCollectionLinks>>

All Implemented Interfaces:
IResourceCollectionEnumerator<T>, IPartnerComponent<String>
Direct Known Subclasses:
IndexBasedCollectionEnumerator

public abstract class BaseResourceCollectionEnumerator<T extends ResourceBaseWithLinks<StandardResourceCollectionLinks>>
extends BasePartnerComponentString
implements IResourceCollectionEnumerator<T>
Base implementation for resource collection enumerators.
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected BaseResourceCollectionEnumerator​(IPartner rootPartnerOperations, T resourceCollection, com.fasterxml.jackson.databind.ObjectMapper resourceCollectionConverter, com.fasterxml.jackson.core.type.TypeReference<T> responseType)
    Initializes a new instance of the BaseResourceCollectionEnumerator class.
  • Method Summary

    Modifier and Type Method 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.

    Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent

    getContext, getPartner

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait