- Type Parameters:
T
- The type of the first argumentU
- The type of the second argumentV
- The type of the third argument
- 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 consumes them.
The
The
FunctionalInterface
method is accept(Object, Object, Object)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Takes three arguments and consumes them.default @NotNull TriConsumer
<T, U, V> andThen
(@NotNull TriConsumer<? super T, ? super U, ? super V> after) Returns a composed consumer of same type that performs, in sequence,
this operation followed by theafter
operation.
-
Method Details
-
accept
Takes three arguments and consumes them.- Parameters:
t
- The first argumentu
- The second argumentv
- The third argument
-
andThen
@NotNull default @NotNull TriConsumer<T,U, andThenV> (@NotNull @NotNull TriConsumer<? super T, ? super U, ? super V> after) Returns a composed consumer of same type that performs, in sequence,
this operation followed by theafter
operation.- Parameters:
after
- The operation to perform after this operation- Returns:
- The composed consumer
- Throws:
NullPointerException
- If the after operation is null
-