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 consumerF
- the type of the sixth argument of the consumerG
- the type of the seventh argument of the consumer@ConsumerType
@FunctionalInterface
public interface HeptaConsumer<A,B,C,D,E,F,G>
java.util.function.Consumer
that takes seven 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,
F f,
G g)
Operates with nine parameters and returns
void . |
default HeptaConsumer<A,B,C,D,E,F,G> |
andThen(HeptaConsumer<? super A,? super B,? super C,? super D,? super E,? super F,? super G> after)
Returns the
HeptaConsumer function that first executes the
current HeptaConsumer instance's accept method, then
executes the after parameter's accept method. |
static <A,B,C,D,E,F,G> |
empty()
Returns an empty
HeptaConsumer that doesn't perform any
operation. |
static <A,B,C,D,E,F,G> HeptaConsumer<A,B,C,D,E,F,G> empty()
HeptaConsumer
that doesn't perform any
operation.HeptaConsumer
that doesn't perform any operationvoid accept(A a, B b, C c, D d, E e, F f, G g)
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 argumentf
- the sixth function argumentg
- the seventh function argumentdefault HeptaConsumer<A,B,C,D,E,F,G> andThen(HeptaConsumer<? super A,? super B,? super C,? super D,? super E,? super F,? super G> after)
HeptaConsumer
function that first executes the
current HeptaConsumer
instance's accept
method, then
executes the after
parameter's accept
method.after
- the HeptaConsumer
instance to execute after the
current instanceHeptaConsumer
that executes the current instance's
accept
method, as well as that of after