PagedConverter Class
- java.
lang. Object - com.
azure. resourcemanager. resources. fluentcore. utils. PagedConverter
- com.
public final class PagedConverter
Utility class for conversion of PagedResponse.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Paged |
<T,S>flatMapPage(PagedFlux<T> pagedFlux, Function<? super T,? extends Publisher<? extends S>> mapper)
Applies flat |
|
static
Paged |
<T,S>mapPage(PagedFlux<T> pagedFlux, Function<T,S> mapper)
Applies map transform to elements of Paged |
|
static
Paged |
<T,S>mapPage(PagedIterable<T> pageIterable, Function<T,S> mapper)
Applies map transform to elements of Paged |
|
static
Paged |
<T,S>mergePagedFlux(PagedFlux<T> pagedFlux, Function<? super T,PagedFlux<S>> transformer)
Merge collection of all Paged |
|
static
Paged |
convertListToPagedFlux(Mono<Response<List<T>>> responseMono)
Converts Response of List to Paged |
Methods inherited from java.lang.Object
Method Details
<T,S>flatMapPage
public static PagedFlux <T,S>flatMapPage(PagedFlux<T> pagedFlux, Function<? super T,? extends Publisher<? extends S>> mapper)
Applies flatMap transform to elements of PagedFlux.
Parameters:
Returns:
<T,S>mapPage
public static PagedFlux <T,S>mapPage(PagedFlux<T> pagedFlux, Function<T,S> mapper)
Applies map transform to elements of PagedFlux.
Do not use it over PagedFlux generated from mergePagedFlux, as the continuationToken in that case cannot be used to continue the outer PagedFlux.
Parameters:
Returns:
<T,S>mapPage
public static PagedIterable <T,S>mapPage(PagedIterable<T> pageIterable, Function<T,S> mapper)
Applies map transform to elements of PagedIterable.
Parameters:
Returns:
<T,S>mergePagedFlux
public static PagedFlux <T,S>mergePagedFlux(PagedFlux<T> pagedFlux, Function<? super T,PagedFlux> transformer)
Merge collection of all PagedFlux transformed from elements of PagedFlux to a single PagedFlux.
Parameters:
Returns:
convertListToPagedFlux
public static PagedFlux<T> <T>convertListToPagedFlux(Mono<Response<List<T>>> responseMono)
Converts Response of List to PagedFlux.
Parameters:
Returns: