IResourceCollectionEnumerator<T> Interface
Type Parameters
- T
public interface IResourceCollectionEnumerator<T>
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 and Description |
|---|---|
| abstract T |
getCurrent()
The current resource collection. |
| abstract boolean |
hasValue()
Gets whether the current result collection has a value or not. |
| abstract boolean |
isFirstPage()
Gets whether the current result collection is the first page of results or not. |
| abstract boolean |
isLastPage()
Gets whether the current result collection is the last page of results or not. |
| abstract void |
next()
Retrieves the next result set. |
| abstract void |
next(IRequestContext context)
Retrieves the next result set. |
| abstract void |
previous()
Retrieves the previous result set. |
| abstract void |
previous(IRequestContext context)
Retrieves the previous result set. |
Method Details
getCurrent
public abstract T getCurrent()
The current resource collection.
Returns:
hasValue
public abstract 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 abstract boolean isFirstPage()
Gets whether the current result collection is the first page of results or not.
Returns:
isLastPage
public abstract boolean isLastPage()
Gets whether the current result collection is the last page of results or not.
Returns:
next
public abstract void next()
Retrieves the next result set.
next
public abstract void next(IRequestContext context)
Retrieves the next result set.
Parameters:
previous
public abstract void previous()
Retrieves the previous result set.
previous
public abstract void previous(IRequestContext context)
Retrieves the previous result set.
Parameters: