PagedIterable<T> Class

Definition

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

Code sample using Stream by page

{@codesnippet com.azure.core.http.rest.pagedIterable.streamByPage}

Code sample using Iterable by page

{@codesnippet com.azure.core.http.rest.pagedIterable.iterableByPage}

Code sample using Iterable by page and while loop

{@codesnippet com.azure.core.http.rest.pagedIterable.iterableByPage.while}

public class PagedIterable<T> extends PagedIterableBase<T,PagedResponse<T>>

Type Parameters

T
Inheritance

Inherited Members

Constructors

PagedIterable(PagedFlux<T> pagedFlux)

Creates instance given PagedFlux<T>.

Methods

<S>mapPage(Function<T,S> mapper)

Maps this PagedIterable instance of T to a PagedIterable instance of type S as per the provided mapper function.

Applies to