Interface TripleFunction<T1,T2,T3,R>
-
- Type Parameters:
T1- the first function argument typeT2- the second function argument typeT3- the third function argument typeR- the type of the result of the function
- All Superinterfaces:
Serializable
- 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 TripleFunction<T1,T2,T3,R> extends Serializable
Represents a function that accepts three arguments and produces a result.
This is a specialization of theFunctioninterface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> TripleFunction<T1,T2,T3,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.Rapply(T1 t1, T2 t2, T3 t3)Applies this function to the given arguments.
-
-
-
Method Detail
-
apply
R apply(T1 t1, T2 t2, T3 t3)
Applies this function to the given arguments.- Parameters:
t1- the first function argumentt2- the second function argumentt3- the third function argument- Returns:
- the function result
-
andThen
default <V> TripleFunction<T1,T2,T3,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- return type of theafterfunction- Parameters:
after- the function to apply after this function is applied- Returns:
- a function composed of this and after
-
-