AutocompletePagedIterable Class

public final class AutocompletePagedIterable
extends PagedIterableBase<AutocompleteItem,AutocompletePagedResponse>

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

Constructor Summary

Constructor Description
AutocompletePagedIterable(AutocompletePagedFlux pagedFluxBase)

Creates instance given AutocompletePagedIterable.

AutocompletePagedIterable(Supplier<AutocompletePagedResponse> firstPageRetriever)

Creates an instance of AutocompletePagedIterable.

AutocompletePagedIterable(Supplier<AutocompletePagedResponse> firstPageRetriever, Function<String,AutocompletePagedResponse> nextPageRetriever)

Creates an instance of AutocompletePagedIterable.

Methods inherited from IterableStream

Methods inherited from ContinuablePagedIterable

Methods inherited from java.lang.Object

Constructor Details

AutocompletePagedIterable

public AutocompletePagedIterable(AutocompletePagedFlux pagedFluxBase)

Creates instance given AutocompletePagedIterable.

Parameters:

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

AutocompletePagedIterable

public AutocompletePagedIterable(Supplier firstPageRetriever)

Creates an instance of AutocompletePagedIterable. The constructor takes a Supplier and Function. The Supplier returns the first page of AutocompletePagedResponse.

Parameters:

firstPageRetriever - Supplier that retrieves the first page

AutocompletePagedIterable

public AutocompletePagedIterable(Supplier firstPageRetriever, Function nextPageRetriever)

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

Parameters:

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

Applies to