SuggestPagedIterable Class

public final class SuggestPagedIterable
extends PagedIterableBase<SuggestResult,SuggestPagedResponse>

Implementation of PagedIterableBase<T,P> where the element type is SuggestResult and the page type is SuggestPagedResponse.

Constructor Summary

Constructor Description
SuggestPagedIterable(SuggestPagedFlux pagedFluxBase)

Creates instance given SuggestPagedIterable.

SuggestPagedIterable(Supplier<SuggestPagedResponse> firstPageRetriever)

Creates an instance of SuggestPagedIterable.

SuggestPagedIterable(Supplier<SuggestPagedResponse> firstPageRetriever, Function<String,SuggestPagedResponse> nextPageRetriever)

Creates an instance of SuggestPagedIterable.

Methods inherited from IterableStream

Methods inherited from ContinuablePagedIterable

Methods inherited from java.lang.Object

Constructor Details

SuggestPagedIterable

public SuggestPagedIterable(SuggestPagedFlux pagedFluxBase)

Creates instance given SuggestPagedIterable.

Parameters:

pagedFluxBase - The SuggestPagedIterable that will be consumed as an iterable.

SuggestPagedIterable

public SuggestPagedIterable(Supplier firstPageRetriever)

Creates an instance of SuggestPagedIterable. The constructor takes a Supplier. The Supplier returns the first page of SuggestPagedResponse.

Parameters:

firstPageRetriever - Supplier that retrieves the first page

SuggestPagedIterable

public SuggestPagedIterable(Supplier firstPageRetriever, Function nextPageRetriever)

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

Parameters:

firstPageRetriever - Supplier that retrieves the first page
nextPageRetriever - Function that retrieves the next page given a continuation token

Applies to