Package pro.horde.os.cutils.function
Interface TriConsumer<X,Y,Z>
-
- Type Parameters:
X- the type of the first argument to the operation.Y- the type of the second argument to the operation.Z- the type of the third argument to the operation.
- 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<X,Y,Z>
Represents an operation that accepts three input arguments and returns no result. This is the three-arity specialization ofConsumer. Unlike most other functional interfaces,TriConsumeris expected to operate via side-effects.- Since:
- 2.0
- Author:
- Bobai Kato
- See Also:
BiConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(X x, Y y, Z z)Performs this operation on the given argument.default TriConsumer<X,Y,Z>andThen(TriConsumer<? super X,? super Y,? super Z> after)Returns a composedTriConsumerthat performs, in sequence, this operation followed by theafteroperation.
-
-
-
Method Detail
-
accept
void accept(X x, Y y, Z z)
Performs this operation on the given argument.- Parameters:
x- the first input argumenty- the second input argumentz- the third input argument
-
andThen
default TriConsumer<X,Y,Z> andThen(TriConsumer<? super X,? super Y,? super Z> after)
Returns a composedTriConsumerthat performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Parameters:
after- the operation to perform after this operation- Returns:
- a composed
TriConsumerthat performs in sequence this operation followed by theafteroperation - Throws:
NullPointerException- ifafteris null
-
-