Interface TriFunction<T,U,V,R>
-
- Type Parameters:
T- the type of the first object parameterU- the type of the second object parameterV- the type of the third object parameterR- the type of the result
- 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 TriFunction<T,U,V,R>
A function that takes three arguments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <S> TriFunction<T,U,V,S>andThen(Function<? super R,? extends S> after)Returns a new function that composes this function and the specified function.Rapply(T t, U u, V v)Applies this function to the given arguments.
-
-
-
Method Detail
-
apply
R apply(T t, U u, V v)
Applies this function to the given arguments.- Parameters:
t- the first function argumentu- the second function argumentv- the third function argument- Returns:
- the function result
-
andThen
default <S> TriFunction<T,U,V,S> andThen(Function<? super R,? extends S> after)
Returns a new function that composes this function and the specified function.This returns a composed function that applies the input to this function and then converts the result using the specified function.
- Type Parameters:
S- the type of the resulting function- Parameters:
after- the function to combine with- Returns:
- the combined function, "this AND_THEN that"
-
-