@FunctionalInterface public interface LongConsumer1 extends AbstractLongConsumer1<LongConsumer1>
long-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 long-consuming primitive specialization of Consumer1.
This is a functional interface whose functional method is AbstractLongConsumer1.accept(long).
| Modifier and Type | Method and Description |
|---|---|
default LongConsumer1 |
andThen(LongConsumer1 after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default LongConsumer1 |
andThenUnchecked(LongConsumer1 after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default Consumer1<java.lang.Long> |
boxInput() |
static LongConsumer1 |
fromVariant(java.util.function.LongConsumer consumer)
Creates an instance of this object from its
LongConsumer variant. |
accept, acceptAllUnchecked, andThen, andThenUnchecked, arity, toVariantapplyAllUnchecked, sizedAcceptAllUncheckedstatic LongConsumer1 fromVariant(java.util.function.LongConsumer consumer)
LongConsumer variant.consumer - the variant of this objectLongConsumerdefault Consumer1<java.lang.Long> boxInput()
boxInput in interface AbstractLongConsumer1<LongConsumer1>boxInput in interface net.ashwork.functionality.partial.UnboxedInput<AbstractConsumer1<java.lang.Long,?>>Consumer1default LongConsumer1 andThen(LongConsumer1 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<LongConsumer1>andThen in interface AbstractLongConsumer1<LongConsumer1>andThen in interface ConsumerChainable<LongConsumer1>andThen in interface ConsumerChainableConsumer<LongConsumer1>after - the operation to perform after this operationafter operationdefault LongConsumer1 andThenUnchecked(LongConsumer1 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<LongConsumer1>andThenUnchecked in interface AbstractLongConsumer1<LongConsumer1>andThenUnchecked in interface ConsumerChainable<LongConsumer1>andThenUnchecked in interface ConsumerChainableConsumer<LongConsumer1>after - the operation to perform after this operationafter operation