T1
- the type of the item contained within the collectionT2
- the type of the request builder for the next page in this collectionpublic abstract class BaseCollectionPage<T1,T2 extends IRequestBuilder> extends java.lang.Object implements IBaseCollectionPage<T1,T2>
Constructor and Description |
---|
BaseCollectionPage(java.util.List<T1> pageContents,
T2 nextRequestBuilder)
Creates the collection page
|
BaseCollectionPage(java.util.List<T1> pageContents,
T2 nextRequestBuilder,
AdditionalDataManager responseAdditionalData)
Creates the collection page
|
Modifier and Type | Method and Description |
---|---|
AdditionalDataManager |
additionalDataManager()
Provides access to objects not anticipated in the model, as well as
request and response data from the HTTP call
|
java.util.List<T1> |
getCurrentPage()
Gets the current page
|
T2 |
getNextPage()
Gets the next page request builder
|
com.google.gson.JsonObject |
getRawObject()
Gets the raw representation of this class
|
protected ISerializer |
getSerializer()
Gets the serializer
|
void |
setRawObject(ISerializer serializer,
com.google.gson.JsonObject json)
Sets the raw JSON object
|
public BaseCollectionPage(java.util.List<T1> pageContents, T2 nextRequestBuilder)
pageContents
- the contents of this pagenextRequestBuilder
- the request builder for the next pagepublic BaseCollectionPage(java.util.List<T1> pageContents, T2 nextRequestBuilder, AdditionalDataManager responseAdditionalData)
pageContents
- the contents of this pagenextRequestBuilder
- the request builder for the next pageresponseAdditionalData
- the additional data returned by the responsepublic T2 getNextPage()
getNextPage
in interface IBaseCollectionPage<T1,T2 extends IRequestBuilder>
public java.util.List<T1> getCurrentPage()
getCurrentPage
in interface IBaseCollectionPage<T1,T2 extends IRequestBuilder>
public com.google.gson.JsonObject getRawObject()
getRawObject
in interface IBaseCollectionPage<T1,T2 extends IRequestBuilder>
protected ISerializer getSerializer()
public void setRawObject(ISerializer serializer, com.google.gson.JsonObject json)
setRawObject
in interface IJsonBackedObject
serializer
- the serializerjson
- the JSON object to set this object topublic final AdditionalDataManager additionalDataManager()
IJsonBackedObject
additionalDataManager
in interface IJsonBackedObject