Interface RxFunction<I,O>
- All Superinterfaces:
io.reactivex.rxjava3.core.FlowableTransformer<I,O>, Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface RxFunction<I,O>
extends io.reactivex.rxjava3.core.FlowableTransformer<I,O>, Serializable
A FlowableTransformer with support for method chaining
-
Method Summary
Modifier and TypeMethodDescriptiondefault <X> RxFunction<I, X> andThen(RxFunction<? super O, X> next) Generic chaining: RxFunctioninvalid input: '<'I, O> fn = RxFunction.identity() .andThen(a -> fn(a))...andThen(o -> fn(o));...default <X> RxFunction<I, X> andThenFlatMapIterable(SerializableFunction<? super O, ? extends Iterable<X>> mapper) default <X> RxFunction<I, X> andThenMap(SerializableFunction<? super O, X> mapper) invalid input: '{@code andThenMap(x -> y) is a short hand for {@code andThen(flowable -> flowable.map(x -> y))} @param <X> @param mapper @return'static <I,O> RxFunction <I, O> from(RxFunction<I, O> rxfn) static <X> RxFunction<X, X> identity()Methods inherited from interface io.reactivex.rxjava3.core.FlowableTransformer
apply
-
Method Details
-
andThen
Generic chaining: RxFunctioninvalid input: '<'I, O> fn = RxFunction.identity() .andThen(a -> fn(a))...andThen(o -> fn(o));...- Type Parameters:
X-- Parameters:
next-- Returns:
-
andThenMap
invalid input: '{@code andThenMap(x -> y) is a short hand for {@code andThen(flowable -> flowable.map(x -> y))} @param <X> @param mapper @return' -
andThenFlatMapIterable
default <X> RxFunction<I,X> andThenFlatMapIterable(SerializableFunction<? super O, ? extends Iterable<X>> mapper) -
from
-
identity
-