@FunctionalInterface public interface DoubleConsumer1 extends AbstractDoubleConsumer1<DoubleConsumer1>
double-valued argument and returns no result.
This is the one-arity specialization of ConsumerN.
This is the non-producing specialization of Function1.
This is the double-consuming primitive specialization of Consumer1.
This is a functional interface whose functional method is AbstractDoubleConsumer1.accept(double).
| Modifier and Type | Method and Description |
|---|---|
default DoubleConsumer1 |
andThen(DoubleConsumer1 after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default DoubleConsumer1 |
andThenUnchecked(DoubleConsumer1 after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default Consumer1<java.lang.Double> |
boxInput() |
static DoubleConsumer1 |
fromVariant(java.util.function.DoubleConsumer consumer)
Creates an instance of this object from its
DoubleConsumer variant. |
accept, acceptAllUnchecked, andThen, andThenUnchecked, arity, toVariantapplyAllUnchecked, sizedAcceptAllUncheckedstatic DoubleConsumer1 fromVariant(java.util.function.DoubleConsumer consumer)
DoubleConsumer variant.consumer - the variant of this objectDoubleConsumerdefault Consumer1<java.lang.Double> boxInput()
boxInput in interface AbstractDoubleConsumer1<DoubleConsumer1>boxInput in interface net.ashwork.functionality.partial.UnboxedInput<AbstractConsumer1<java.lang.Double,?>>Consumer1default DoubleConsumer1 andThen(DoubleConsumer1 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 AbstractConsumerN<DoubleConsumer1>andThen in interface AbstractDoubleConsumer1<DoubleConsumer1>andThen in interface ConsumerChainable<DoubleConsumer1>andThen in interface ConsumerChainableConsumer<DoubleConsumer1>after - the operation to perform after this operationafter operationdefault DoubleConsumer1 andThenUnchecked(DoubleConsumer1 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 AbstractConsumerN<DoubleConsumer1>andThenUnchecked in interface AbstractDoubleConsumer1<DoubleConsumer1>andThenUnchecked in interface ConsumerChainable<DoubleConsumer1>andThenUnchecked in interface ConsumerChainableConsumer<DoubleConsumer1>after - the operation to perform after this operationafter operation