Package org.eclipse.emfforms.common
Interface TriConsumer<T,U,V>
-
- Type Parameters:
T- the type of the first inputU- the type of the second inputV- the type of the third input
- 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>Protocol for an action that accepts three inputs. This is the ternary variant ofConsumerasBiConsumeris a binary variant of it.- Since:
- 1.22
- See Also:
TriFunction,BiConsumer,Consumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(T t, U u, V v)Accept the inputs and operate on them.default TriConsumer<T,U,V>andThen(TriConsumer<? super T,? super U,? super V> after)Obtain a composedTriConsumerthat performs me followed by anafteroperation.
-
-
-
Method Detail
-
accept
void accept(T t, U u, V v)
Accept the inputs and operate on them.- Parameters:
t- the first inputu- the second inputv- the third input
-
andThen
default TriConsumer<T,U,V> andThen(TriConsumer<? super T,? super U,? super V> after)
Obtain a composedTriConsumerthat performs me followed by anafteroperation. If theafterconsumer throws, then that exception is propagated to the caller. If I throw, then likewise but also theafterconsumer will not be invoked.- Parameters:
after- a consumer to invoke after me. Must not benull- Returns:
- the composition of myself with the
afterconsumer - Throws:
java.lang.NullPointerException- ifafterisnull
-
-