public final class FlowInterop
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static <T> io.reactivex.processors.FlowableProcessor<T> |
fromFlowProcessor(java.util.concurrent.Flow.Processor<T,T> source) |
Wraps a Flow.Processor (identity) into a FlowableProcessor.
|
static <T> io.reactivex.Flowable<T> |
fromFlowPublisher(java.util.concurrent.Flow.Publisher<T> source) |
Wraps a Flow.Publisher into a Flowable.
|
static <T> io.reactivex.functions.Function<io.reactivex.Flowable<T>,java.util.concurrent.Flow.Publisher<T>> |
toFlow() |
Converter function from a Flowable into a Publisher.
|
static <T,R> java.util.concurrent.Flow.Processor<T,R> |
toFlowProcessor(org.reactivestreams.Processor<T,R> source) |
Wraps an RS Processor into a Flow.Processor.
|
static <T> java.util.concurrent.Flow.Publisher<T> |
toFlowPublisher(org.reactivestreams.Publisher<T> source) |
Wraps an RS Publisher into a Flow.Publisher.
|
public static <T> io.reactivex.Flowable<T> fromFlowPublisher(java.util.concurrent.Flow.Publisher<T> source)
T - the value typesource - the source Flow.Publisher, not nulljava.lang.NullPointerException - if source is nullpublic static <T> io.reactivex.functions.Function<io.reactivex.Flowable<T>,java.util.concurrent.Flow.Publisher<T>> toFlow()
T - the value typeFlowable.to().public static <T> io.reactivex.processors.FlowableProcessor<T> fromFlowProcessor(java.util.concurrent.Flow.Processor<T,T> source)
T - the input and output type of the Flow.Processorsource - the source Flow.Processor, not nulljava.lang.NullPointerException - if source is nullpublic static <T> java.util.concurrent.Flow.Publisher<T> toFlowPublisher(org.reactivestreams.Publisher<T> source)
T - the value typesource - the source RS Publisher instance, not nulljava.lang.NullPointerException - if source is nullpublic static <T,R> java.util.concurrent.Flow.Processor<T,R> toFlowProcessor(org.reactivestreams.Processor<T,R> source)
T - the input value typeR - the output value typesource - the source RS Processorjava.lang.NullPointerException - if source is null