Package software.amazon.smithy.utils
Interface TriConsumer<T,U,V>
-
- Type Parameters:
T
- The first argument type.U
- The second argument type.V
- The third argument type.
- 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 TriConsumer<T,U,V>
Similar toBiConsumer
, but accepts three arguments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(T t, U u, V v)
Performs the operation on the given inputs.default TriConsumer<T,U,V>
andThen(TriConsumer<? super T,? super U,? super V> after)
Returns a composedTriConsumer
that performs, in sequence, this operation followed by theafter
operation.
-
-
-
Method Detail
-
accept
void accept(T t, U u, V v)
Performs the operation on the given inputs.- Parameters:
t
- is the first argumentu
- is the second argumentv
- is the third argument
-
andThen
default TriConsumer<T,U,V> andThen(TriConsumer<? super T,? super U,? super V> after)
Returns a composedTriConsumer
that performs, in sequence, this operation followed by theafter
operation.- Parameters:
after
- the operation to perform after this operation- Returns:
- a composed
TriConsumer
- Throws:
java.lang.NullPointerException
- ifafter
is null
-
-