public class SimpleBundleProvider extends Object implements IBundleProvider
| Constructor and Description |
|---|
SimpleBundleProvider()
Create an empty bundle
|
SimpleBundleProvider(IBaseResource theResource) |
SimpleBundleProvider(List<IBaseResource> theList) |
| Modifier and Type | Method and Description |
|---|---|
InstantDt |
getPublished()
Returns the instant as of which this result was valid
|
List<IBaseResource> |
getResources(int theFromIndex,
int theToIndex)
Load the given collection of resources by index, plus any additional resources per the
server's processing rules (e.g.
|
Integer |
preferredPageSize()
Optionally may be used to signal a preferred page size to the server, e.g.
|
int |
size()
Returns the total number of results which match the given query (exclusive of any
_include's or OperationOutcome)
|
public SimpleBundleProvider(List<IBaseResource> theList)
public SimpleBundleProvider(IBaseResource theResource)
public SimpleBundleProvider()
public List<IBaseResource> getResources(int theFromIndex, int theToIndex)
IBundleProvidergetResources in interface IBundleProvidertheFromIndex - The low index (inclusive) to returntheToIndex - The high index (exclusive) to returntheToIndex - theFromIndex.public int size()
IBundleProvidersize in interface IBundleProviderpublic InstantDt getPublished()
IBundleProvidergetPublished in interface IBundleProviderpublic Integer preferredPageSize()
IBundleProviderpreferredPageSize in interface IBundleProvidernullCopyright © 2014–2016 University Health Network. All rights reserved.