A
- the type of the first argument of the consumerB
- the type of the second argument of the consumerC
- the type of the third argument of the consumerD
- the type of the fourth argument of the consumerE
- the type of the fifth argument of the consumer@ConsumerType
@FunctionalInterface
public interface PentaConsumer<A,B,C,D,E>
java.util.function.Consumer
that takes five input
parameters. This consumer, like all consumers, doesn't return a result.
This interface can be implemented with a lambda function.
Modifier and Type | Method and Description |
---|---|
void |
accept(A a,
B b,
C c,
D d,
E e)
Operates with five parameters and returns
void . |
default PentaConsumer<A,B,C,D,E> |
andThen(PentaConsumer<? super A,? super B,? super C,? super D,? super E> after)
Returns the
PentaConsumer function that first executes the
current PentaConsumer instance's accept method, then
executes the after parameter's accept method. |
static <A,B,C,D,E> |
empty()
Returns an empty
PentaConsumer that doesn't perform any
operation. |
static <A,B,C,D,E> PentaConsumer<A,B,C,D,E> empty()
PentaConsumer
that doesn't perform any
operation.PentaConsumer
that doesn't perform any operationvoid accept(A a, B b, C c, D d, E e)
void
. This function can
be implemented explicitly or with a lambda.a
- the first function argumentb
- the second function argumentc
- the third function argumentd
- the fourth function argumente
- the fifth function argumentdefault PentaConsumer<A,B,C,D,E> andThen(PentaConsumer<? super A,? super B,? super C,? super D,? super E> after)
PentaConsumer
function that first executes the
current PentaConsumer
instance's accept
method, then
executes the after
parameter's accept
method.after
- the PentaConsumer
instance to execute after the
current instancePentaConsumer
that executes the current instance's
accept
method, as well as that of after