Interface ThrowingFunction3<T1,T2,T3,R,E extends Throwable>

Type Parameters:
T1 - type of the first input argument
T2 - type of the second input argument
T3 - type of the third input argument
R - type of the result
E - type of the throwing exception
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 ThrowingFunction3<T1,T2,T3,R,E extends Throwable>
The Function specialization for 3 arguments that might throw an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T1 t1, T2 t2, T3 t3)
    Applies this function to the given arguments.
    static <T1, T2, T3, R, E extends Throwable>
    ThrowingFunction3<T1,T2,T3,R,E>
    of(ThrowingFunction3<? super T1,? super T2,? super T3,? extends R,? extends E> block)
    Returns given function.
    static <T1, T2, T3, R>
    ThrowingFunction3<T1,T2,T3,R,Error>
    unchecked(ThrowingFunction3<? super T1,? super T2,? super T3,? extends R,?> block)
    Returns given function as an unchecked function.
  • Method Details

    • apply

      R apply(T1 t1, T2 t2, T3 t3) throws E
      Applies this function to the given arguments.
      Parameters:
      t1 - the first input argument
      t2 - the second input argument
      t3 - the third input argument
      Returns:
      result
      Throws:
      E - if function threw exception
    • of

      static <T1, T2, T3, R, E extends Throwable> ThrowingFunction3<T1,T2,T3,R,E> of(ThrowingFunction3<? super T1,? super T2,? super T3,? extends R,? extends E> block)
      Returns given function.
      Type Parameters:
      T1 - type of the first input argument
      T2 - type of the second input argument
      T3 - type of the third input argument
      R - type of the result
      E - type of the throwing exception
      Parameters:
      block - the function
      Returns:
      function
      Throws:
      NullPointerException - if block arg is null
    • unchecked

      static <T1, T2, T3, R> ThrowingFunction3<T1,T2,T3,R,Error> unchecked(ThrowingFunction3<? super T1,? super T2,? super T3,? extends R,?> block)
      Returns given function as an unchecked function.
      Type Parameters:
      T1 - type of the first input argument
      T2 - type of the second input argument
      T3 - type of the third input argument
      R - type of the result
      Parameters:
      block - the origin function
      Returns:
      unchecked function
      Throws:
      NullPointerException - if block arg is null