Interface BiFunction<T1,T2,R>

Type Parameters:
T1 - the first value type
T2 - the second value type
R - the result type
All Known Implementing Classes:
FlowableInternalHelper.SimpleBiGenerator, FlowableInternalHelper.SimpleGenerator, ListAddBiConsumer, MergerBiFunction, ObservableInternalHelper.SimpleBiGenerator, ObservableInternalHelper.SimpleGenerator, ParallelFailureHandling
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 BiFunction<@NonNull T1,@NonNull T2,@NonNull R>
A functional interface (callback) that computes a value based on multiple input values.
  • Method Summary

    Modifier and Type
    Method
    Description
    Calculate a value based on the input values.
  • Method Details

    • apply

      R apply(@NonNull T1 t1, @NonNull T2 t2) throws Throwable
      Calculate a value based on the input values.
      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