Interface TriFunction<P1,P2,P3,R>
- Type Parameters:
P1- the first function parameter typeP2- the second function parameter typeP3- the third function parameter typeR- the function result type
public interface TriFunction<P1,P2,P3,R>
A function with 3 parameters.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> TriFunction<P1,P2, P3, V> Returns a composed function that first applies this function to its input, and then applies theafterfunction to the result.Applies this function to the given parameters.
-
Method Details
-
apply
Applies this function to the given parameters.- Parameters:
p1- the first function parameterp2- the second function parameterp3- the third function parameter- Returns:
- the function result
-
andThen
Returns a composed function that first applies this function to its input, and then applies theafterfunction 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 theafterfunction, 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
afterfunction - Throws:
NullPointerException- if after is null
-