Interface IResourceCollectionEnumerator<T extends ResourceBaseWithLinks<StandardResourceCollectionLinks>>
- All Known Implementing Classes:
BaseResourceCollectionEnumerator,IndexBasedCollectionEnumerator
public interface IResourceCollectionEnumerator<T extends ResourceBaseWithLinks<StandardResourceCollectionLinks>>
Provides resource collection enumeration capabilities. This interface can page through results and determines whether
the current page is the first or last page or not. The enumeration result type.
-
Method Summary
Modifier and Type Method Description TgetCurrent()The current resource collection.booleanhasValue()Gets whether the current result collection has a value or not.booleanisFirstPage()Gets whether the current result collection is the first page of results or not.booleanisLastPage()Gets whether the current result collection is the last page of results or not.voidnext()Retrieves the next result set.voidnext(IRequestContext context)Retrieves the next result set.voidprevious()Retrieves the previous result set.voidprevious(IRequestContext context)Retrieves the previous result set.
-
Method Details
-
isFirstPage
boolean isFirstPage()Gets whether the current result collection is the first page of results or not.- Returns:
- A flag indicating whether or not the result collect is the fist page of results or not.
-
isLastPage
boolean isLastPage()Gets whether the current result collection is the last page of results or not.- Returns:
- A flag indicating whether the current result collection is the last page of results or not.
-
hasValue
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:
- A flag indicating whether the current result collection has a value or not.
-
getCurrent
T getCurrent()The current resource collection.- Returns:
- The current resoure collection.
-
next
void next()Retrieves the next result set. -
next
Retrieves the next result set.- Parameters:
context- An optional request context. If not provided, the context associated with the partner operations will be used.
-
previous
void previous()Retrieves the previous result set. -
previous
Retrieves the previous result set.- Parameters:
context- An optional request context. If not provided, the context associated with the partner operations will be used.
-