Class BaseCollectionPage<T,​T2 extends BaseRequestBuilder<T>>

java.lang.Object
com.microsoft.graph.http.BaseCollectionPage<T,​T2>
Type Parameters:
T - the type of the item contained within the collection
All Implemented Interfaces:
IJsonBackedObject
Direct Known Subclasses:
DeltaCollectionPage

public class BaseCollectionPage<T,​T2 extends BaseRequestBuilder<T>> extends Object implements IJsonBackedObject
A page of results from a collection
  • Constructor Details

    • BaseCollectionPage

      public BaseCollectionPage(@Nonnull ICollectionResponse<T> response, @Nullable 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(@Nonnull List<T> pageContents, @Nullable T2 nextRequestBuilder)
      Creates the collection page
      Parameters:
      pageContents - the contents of this page
      nextRequestBuilder - the request builder for the next page
    • BaseCollectionPage

      public BaseCollectionPage(@Nonnull List<T> pageContents, @Nullable T2 nextRequestBuilder, @Nonnull 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

    • getNextPage

      @Nullable public T2 getNextPage()
      Gets the next page request builder
      Returns:
      the next page request builder
    • getCurrentPage

      @Nonnull public List<T> getCurrentPage()
      Gets the current page
      Returns:
      the current page
    • setRawObject

      public void setRawObject(@Nonnull ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to
    • additionalDataManager

      @Nullable public final AdditionalDataManager additionalDataManager()
      Description copied from interface: IJsonBackedObject
      Provides access to objects not anticipated in the model, as well as request and response data from the HTTP call
      Specified by:
      additionalDataManager in interface IJsonBackedObject
      Returns:
      the AddtionalDataManager
    • getCount

      @Nullable 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