Package com.adobe.granite.haf.api
Interface PaginatableResourceList
-
@ProviderType public interface PaginatableResourceListPaginatableResourceList is a collection of paginated resources. Provides access to the resources, as well as an indication on whether or not more resources are available, and the information necessary to retrieve the next set of resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCount()Returns the number of resources contained in the list.java.lang.StringgetNextOffsetValue()Returns the value to use to get the next page of resources.java.util.List<Resource>getResources()Returns the list of resources.booleanhasMore()Indicates whether more results are possible.
-
-
-
Method Detail
-
getNextOffsetValue
@CheckForNull java.lang.String getNextOffsetValue()
Returns the value to use to get the next page of resources.- Returns:
- The next value.
-
getCount
int getCount()
Returns the number of resources contained in the list.- Returns:
- The number of resources.
-
getResources
java.util.List<Resource> getResources()
Returns the list of resources.- Returns:
- the list of resources
-
hasMore
boolean hasMore()
Indicates whether more results are possible. This is based on the presence of a valid nextOffsetValue or not.- Returns:
- Whether more results are possible.
-
-