public class Resources<R extends BaseResource> extends Object implements Iterable<R>, SCIMResponse
| Constructor and Description |
|---|
Resources(List<R> resourceList)
Create a new resources response from the provided list.
|
Resources(List<R> resourceList,
int totalResults,
int startIndex)
Create a new resources response from the provided list.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getItemsPerPage()
Retrieves the number of search results returned in this query response.
|
long |
getStartIndex()
Retrieves the 1-based index of the first result in the current set of
search results.
|
long |
getTotalResults()
Retrieves the total number of results matching the Consumer query.
|
Iterator<R> |
iterator() |
void |
marshal(Marshaller marshaller,
OutputStream outputStream)
Marshals this response using the specified
Marshaller to the
specified OutputStream. |
public Resources(List<R> resourceList)
resourceList - The list of resources to create the response from.public Resources(List<R> resourceList, int totalResults, int startIndex)
resourceList - The list of resources to create the response from.totalResults - The total number of results matching the Consumer querystartIndex - The 1-based index of the first result in the current set
of search resultspublic long getStartIndex()
public long getTotalResults()
public int getItemsPerPage()
public Iterator<R> iterator()
iterator in interface Iterable<R extends BaseResource>public void marshal(Marshaller marshaller, OutputStream outputStream) throws Exception
Marshaller to the
specified OutputStream.marshal in interface SCIMResponsemarshaller - The Marshaller to use.outputStream - The OutputStream to write to.Exception - if an error occurs while performing the marshaling.Copyright © 2011–2016 UnboundID. All rights reserved.