Interface TriFunction<P1,P2,P3,R>

Type Parameters:
P1 - the first function parameter type
P2 - the second function parameter type
P3 - the third function parameter type
R - the function result type

public interface TriFunction<P1,P2,P3,R>
A function with 3 parameters.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> TriFunction<P1,P2,P3,V>
    andThen(Function<? super R,? extends V> after)
    Returns a composed function that first applies this function to its input, and then applies the after function to the result.
    apply(P1 p1, P2 p2, P3 p3)
    Applies this function to the given parameters.
  • Method Details

    • apply

      R apply(P1 p1, P2 p2, P3 p3)
      Applies this function to the given parameters.
      Parameters:
      p1 - the first function parameter
      p2 - the second function parameter
      p3 - the third function parameter
      Returns:
      the function result
    • andThen

      default <V> TriFunction<P1,P2,P3,V> andThen(Function<? super R,? extends V> after)
      Returns a composed function that first applies this function to its input, and then applies the after function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.
      Type Parameters:
      V - the type of output of the after function, and of the composed function
      Parameters:
      after - the function to apply after this function is applied
      Returns:
      a composed function that first applies this function and then applies the after function
      Throws:
      NullPointerException - if after is null