ClassifyDocumentPagedIterable Class

public final class ClassifyDocumentPagedIterable
extends ContinuablePagedIterable<String,ClassifyDocumentResultCollection,PagedResponse<ClassifyDocumentResultCollection>>

This class provides utility to iterate over PagedResponse<T> using Stream and Iterable interfaces.

Constructor Summary

Constructor Description
ClassifyDocumentPagedIterable(ClassifyDocumentPagedFlux pagedFlux)

Creates instance given ClassifyDocumentPagedIterable.

ClassifyDocumentPagedIterable(Supplier<PageRetrieverSync<String,PagedResponse<ClassifyDocumentResultCollection>>> provider)

Creates an instance of ClassifyDocumentPagedIterable.

Methods inherited from IterableStream

Methods inherited from ContinuablePagedIterable

Methods inherited from java.lang.Object

Constructor Details

ClassifyDocumentPagedIterable

public ClassifyDocumentPagedIterable(ClassifyDocumentPagedFlux pagedFlux)

Creates instance given ClassifyDocumentPagedIterable.

Parameters:

pagedFlux - It used as iterable.

ClassifyDocumentPagedIterable

public ClassifyDocumentPagedIterable(Supplier<PageRetrieverSync<String,PagedResponse<ClassifyDocumentResultCollection>>> provider)

Creates an instance of ClassifyDocumentPagedIterable. The constructor takes a Supplier and Function. The Supplier returns the first page of ClassifyDocumentResultCollection, the Function retrieves subsequent pages of ClassifyDocumentResultCollection.

Parameters:

provider - Supplier that retrieves the first page

Applies to