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 consumerH
- the type of the eighth argument of the consumerI
- the type of the ninth argument of the consumerJ
- the type of the tenth argument of the consumer@ConsumerType
@FunctionalInterface
public interface ThrowableDecaConsumer<A,B,C,D,E,F,G,H,I,J>
DecaConsumer
that can throw an exception.
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,
H h,
I i,
J j)
Operates with ten parameters and returns
void . |
default ThrowableDecaConsumer<A,B,C,D,E,F,G,H,I,J> |
andThen(ThrowableDecaConsumer<? super A,? super B,? super C,? super D,? super E,? super F,? super G,? super H,? super I,? super J> after)
Returns the
ThrowableDecaConsumer function that first executes
the current ThrowableDecaConsumer instance's accept
method, then executes the after parameter's accept
method. |
static <A,B,C,D,E,F,G,H,I,J> |
empty()
Returns an empty
ThrowableDecaConsumer that doesn't perform any
operation. |
static <A,B,C,D,E,F,G,H,I,J> ThrowableDecaConsumer<A,B,C,D,E,F,G,H,I,J> empty()
ThrowableDecaConsumer
that doesn't perform any
operation.ThrowableDecaConsumer
that doesn't perform any
operationvoid accept(A a, B b, C c, D d, E e, F f, G g, H h, I i, J j) throws java.lang.Exception
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 argumenth
- the eighth function argumenti
- the ninth function argumentj
- the tenth function argumentjava.lang.Exception
default ThrowableDecaConsumer<A,B,C,D,E,F,G,H,I,J> andThen(ThrowableDecaConsumer<? super A,? super B,? super C,? super D,? super E,? super F,? super G,? super H,? super I,? super J> after)
ThrowableDecaConsumer
function that first executes
the current ThrowableDecaConsumer
instance's accept
method, then executes the after
parameter's accept
method.after
- the ThrowableDecaConsumer
instance to execute after
the current instanceThrowableDecaConsumer
that executes the current
instance's accept
method, as well as that of after