Package com.inrupt.client.accessgrant
Class CredentialResult<T extends AccessCredential>
java.lang.Object
com.inrupt.client.accessgrant.CredentialResult<T>
- Type Parameters:
T
- the access credential type
A page-able result from a credential query.
-
Constructor Summary
ConstructorDescriptionCredentialResult
(List<T> items, CredentialFilter<T> first, CredentialFilter<T> prev, CredentialFilter<T> next, CredentialFilter<T> last) A page of access credential results. -
Method Summary
Modifier and TypeMethodDescriptionGet a filter for the first page of results.getItems()
Get the credential items in the result page.lastPage()
Get a filter for the last page of results.nextPage()
Get a filter for the next page of results.prevPage()
Get a filter for the previous page of results.
-
Constructor Details
-
CredentialResult
public CredentialResult(List<T> items, CredentialFilter<T> first, CredentialFilter<T> prev, CredentialFilter<T> next, CredentialFilter<T> last) A page of access credential results.- Parameters:
items
- the result itemsfirst
- a filter for the first page of results, may benull
prev
- a filter for the previous page of results, may benull
next
- a filter for the next page of results, may benull
last
- a filter for the last page of results, may benull
-
-
Method Details
-
firstPage
Get a filter for the first page of results.- Returns:
- the first page filter, if present
-
prevPage
Get a filter for the previous page of results.- Returns:
- the previous page filter, if present
-
nextPage
Get a filter for the next page of results.- Returns:
- the next page filter, if present
-
lastPage
Get a filter for the last page of results.- Returns:
- the last page filter, if present
-
getItems
Get the credential items in the result page.- Returns:
- the credential items
-