Interface ThrowableBiFunction<T,U,R>

Type Parameters:
T - the type of the first argument to the function
U - the type of the second argument to the function
R - the type of the result of the function
All Superinterfaces:
BiFunction<T,U,R>

public interface ThrowableBiFunction<T,U,R> extends BiFunction<T,U,R>
BiFunction but returns null if there is an exception
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    apply(T t, U u)
     
    applySafe(T t, U u)
    Apply with throwable

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • apply

      default R apply(T t, U u)
      Specified by:
      apply in interface BiFunction<T,U,R>
    • applySafe

      R applySafe(T t, U u) throws Throwable
      Apply with throwable
      Parameters:
      t - the first value
      u - the second value
      Returns:
      the result value
      Throws:
      Throwable - the exception