Class ObservableInternalHelper.SimpleGenerator<T,S>

java.lang.Object
io.reactivex.rxjava3.internal.operators.observable.ObservableInternalHelper.SimpleGenerator<T,S>
All Implemented Interfaces:
BiFunction<S,Emitter<T>,S>
Enclosing class:
ObservableInternalHelper

static final class ObservableInternalHelper.SimpleGenerator<T,S> extends Object implements BiFunction<S,Emitter<T>,S>
  • Field Details

  • Constructor Details

  • Method Details

    • apply

      public S apply(S t1, Emitter<T> t2) throws Throwable
      Description copied from interface: BiFunction
      Calculate a value based on the input values.
      Specified by:
      apply in interface BiFunction<S,Emitter<T>,S>
      Parameters:
      t1 - the first value
      t2 - the second value
      Returns:
      the result value
      Throws:
      Throwable - if the implementation wishes to throw any type of exception