C - the type of this consumer@InheritOnly public interface AbstractConsumerN<C extends AbstractConsumerN<C>> extends net.ashwork.functionality.FunctionN<java.lang.Void>, ConsumerChainableConsumer<C>
n arguments and returns no result.
All consumers are derived from this n-arity specialization.
This is the non-producing specialization of FunctionN.FunctionN| Modifier and Type | Method and Description |
|---|---|
void |
acceptAllUnchecked(java.lang.Object... args)
Performs this operation on the given arguments.
|
default AbstractConsumerN<C> |
andThen(C after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default AbstractConsumerN<C> |
andThenUnchecked(C after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default java.lang.Void |
applyAllUnchecked(java.lang.Object... args) |
default void |
sizedAcceptAllUnchecked(java.lang.Object... args)
Performs this operation on the given arguments.
|
void acceptAllUnchecked(java.lang.Object... args)
args - the input argumentsdefault void sizedAcceptAllUnchecked(java.lang.Object... args)
FunctionN.arity() of this consumer,
an exception will be thrown.args - the number of arguments of the consumerFunctionSizeException - if the number of arguments of the
consumer is not equal to its aritydefault java.lang.Void applyAllUnchecked(java.lang.Object... args)
applyAllUnchecked in interface net.ashwork.functionality.FunctionN<java.lang.Void>default AbstractConsumerN<C> andThen(C after)
ConsumerChainableafter operation. If performing either operation throws an
exception, it is relayed to the caller of the composed operation. If performing
this operation throws an exception, the after operation will not be
performed.andThen in interface ConsumerChainable<C extends AbstractConsumerN<C>>andThen in interface ConsumerChainableConsumer<C extends AbstractConsumerN<C>>after - the operation to perform after this operationafter operationdefault AbstractConsumerN<C> andThenUnchecked(C after)
ConsumerChainableafter operation. If performing either operation throws an
exception, it is relayed to the caller of the composed operation. If performing
this operation throws an exception, the after operation will not be
performed. This makes no assumptions on the arguments of this method.andThenUnchecked in interface ConsumerChainable<C extends AbstractConsumerN<C>>andThenUnchecked in interface ConsumerChainableConsumer<C extends AbstractConsumerN<C>>after - the operation to perform after this operationafter operation