Top Description Methods
org.apache.commons.lang3.function

public Interface TriFunction<T, U, V, R>

Annotations
@FunctionalInterface
Type Parameters
<T>
the type of the first argument to the function
<U>
the type of the second argument to the function
<V>
the type of the third argument to the function
<R>
the type of the result of the function
Imports
java.util.Objects, java.util.function.Function

Represents a function that accepts three arguments and produces a result. This is the three-arity specialization of Function.

This is a functional interface whose functional method is apply(Object, Object, Object).

Since
3.12.0
See Also
Function

Method Summary

Modifier and TypeMethod and Description
public default <
the type of output of the after function, and of the composed function
W
>
TriFunction<T, U, V, W>

Returns:

a composed function that first applies this function and then applies the after function
andThen
(final Function<? super R, ? extends W>
the function to apply after this function is applied
after
)

Returns a composed function that first applies this function to its input, and then applies the after function to the result.

public R

Returns:

the function result
apply
(T
the first function argument
t
,
U
the second function argument
u
,
V
the third function argument
v
)

Applies this function to the given arguments.

Method Detail

andThenback to summary
public default <W> TriFunction<T, U, V, W> andThen(final Function<? super R, ? extends W> 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.

Parameters
<W>
the type of output of the after function, and of the composed function
after:Function<? super R, ? extends W>

the function to apply after this function is applied

Returns:TriFunction<T, U, V, W>

a composed function that first applies this function and then applies the after function

Exceptions
NullPointerException:
if after is null
applyback to summary
public R apply(T t, U u, V v)

Applies this function to the given arguments.

Parameters
t:T

the first function argument

u:U

the second function argument

v:V

the third function argument

Returns:R

the function result