- Type Parameters:
T
- The type of the first argumentU
- The type of the second argumentV
- The type of the third argumentR
- 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.
Functional interface that takes three arguments and returns a value.
The
The
FunctionalInterface
method is apply(Object, Object, Object)
.-
Method Summary
Modifier and TypeMethodDescriptiondefault <S> @NotNull TriFunction
<T, U, V, S> Returns a composed function that first applies this function to its input,
and then applies theafter
function to the result.Applies the arguments to the function and returns a value.
-
Method Details
-
apply
Applies the arguments to the function and returns a value.- Parameters:
t
- The first argumentu
- The second argumentv
- The third argument- Returns:
- The result
-
andThen
@NotNull default <S> @NotNull TriFunction<T,U, andThenV, S> (@NotNull @NotNull Function<? super R, ? extends S> after) Returns a composed function that first applies this function to its input,
and then applies theafter
function to the result.- Type Parameters:
S
- The type of the output of theafter
function, and of the composed function- Parameters:
after
- The function to apply after this function is applied- Returns:
- The composed function
- Throws:
NullPointerException
- If the after function is null
-