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 Details

    • andThen

      default <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));...
      Type Parameters:
      X -
      Parameters:
      next -
      Returns:
    • andThenMap

      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'
    • andThenFlatMapIterable

      default <X> RxFunction<I,X> andThenFlatMapIterable(SerializableFunction<? super O, ? extends Iterable<X>> mapper)
    • from

      static <I,O> RxFunction<I,O> from(RxFunction<I,O> rxfn)
    • identity

      static <X> RxFunction<X,X> identity()