- Type Parameters:
T- The type of the first argumentU- The type of the second argumentV- The type of the third argumentW- The type of the fourth 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 four arguments and returns a value.
The
The
FunctionalInterface method is apply(Object, Object, Object, Object).-
Method Summary
Modifier and TypeMethodDescriptiondefault <S> @NotNull QuadFunction<T, U, V, W, S> Returns a composed function that first applies this function to its input,
and then applies theafterfunction 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 argumentw- The fourth argument- Returns:
- The result
-
andThen
@NotNull default <S> @NotNull QuadFunction<T,U, andThenV, W, S> (@NotNull @NotNull Function<? super R, ? extends S> after) Returns a composed function that first applies this function to its input,
and then applies theafterfunction to the result.- Type Parameters:
S- The type of the output of theafterfunction, 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
-