BaseCollectionPage<T,T2> Class

  • java.lang.Object
    • com.microsoft.graph.http.BaseCollectionPage<T,T2>

Type Parameters

T

the type of the item contained within the collection

T2

Implements

public class BaseCollectionPage<T,T2>
implements IJsonBackedObject

A page of results from a collection

Constructor Summary

Constructor Description
BaseCollectionPage(ICollectionResponse<T> response, T2 builder)

A collection page for WorkforceIntegration

BaseCollectionPage(List<T> pageContents, T2 nextRequestBuilder)

Creates the collection page

BaseCollectionPage(List<T> pageContents, T2 nextRequestBuilder, AdditionalDataManager responseAdditionalData)

Creates the collection page

Method Summary

Modifier and Type Method and Description
final AdditionalDataManager additionalDataManager()

Provides access to objects not anticipated in the model, as well as request and response data from the HTTP call

final java.lang.Long getCount()

Returns the odata count value if it has been requested, null otherwise

java.util.List<T> getCurrentPage()

Gets the current page

T2 getNextPage()

Gets the next page request builder

void setRawObject(ISerializer serializer, JsonObject json)

Sets the raw JSON object

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

BaseCollectionPage

public BaseCollectionPage(ICollectionResponse response, T2 builder)

A collection page for WorkforceIntegration

Parameters:

response - the serialized WorkforceIntegrationCollectionResponse from the service
builder - the request builder for the next collection page

BaseCollectionPage

public BaseCollectionPage(List pageContents, T2 nextRequestBuilder)

Creates the collection page

Parameters:

pageContents - the contents of this page
nextRequestBuilder - the request builder for the next page

BaseCollectionPage

public BaseCollectionPage(List pageContents, T2 nextRequestBuilder, AdditionalDataManager responseAdditionalData)

Creates the collection page

Parameters:

pageContents - the contents of this page
nextRequestBuilder - the request builder for the next page
responseAdditionalData - the additional data returned by the response

Method Details

additionalDataManager

public final AdditionalDataManager additionalDataManager()

Provides access to objects not anticipated in the model, as well as request and response data from the HTTP call

getCount

public final Long getCount()

Returns the odata count value if it has been requested, null otherwise

Returns:

the odata count value if it has been requested, null otherwise

getCurrentPage

public List getCurrentPage()

Gets the current page

Returns:

the current page

getNextPage

public T2 getNextPage()

Gets the next page request builder

Returns:

the next page request builder

setRawObject

public void setRawObject(ISerializer serializer, JsonObject json)

Sets the raw JSON object

Parameters:

serializer - the serializer
json - the JSON object to set this object to

Applies to