T1 - the type of the input to the operation@FunctionalInterface public interface Consumer1<T1> extends AbstractConsumer1<T1,Consumer1<T1>>
ConsumerN.
This is the non-producing specialization of Function1.
This is a functional interface whose functional method is AbstractConsumer1.accept(Object).
ConsumerN,
Function1| Modifier and Type | Method and Description |
|---|---|
default Consumer1<T1> |
andThen(Consumer1<T1> after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default Consumer1<T1> |
andThenUnchecked(Consumer1<T1> after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
static <T1> Consumer1<T1> |
fromVariant(java.util.function.Consumer<? super T1> consumer)
Creates an instance of this object from its
Consumer variant. |
accept, acceptAllUnchecked, andThen, andThenUnchecked, arity, toVariantapplyAllUnchecked, sizedAcceptAllUncheckedstatic <T1> Consumer1<T1> fromVariant(java.util.function.Consumer<? super T1> consumer)
Consumer variant.T1 - the type of the input to the operationconsumer - the variant of this objectConsumerdefault Consumer1<T1> andThen(Consumer1<T1> 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 AbstractConsumer1<T1,Consumer1<T1>>andThen in interface AbstractConsumerN<Consumer1<T1>>andThen in interface ConsumerChainable<Consumer1<T1>>andThen in interface ConsumerChainableConsumer<Consumer1<T1>>after - the operation to perform after this operationafter operationdefault Consumer1<T1> andThenUnchecked(Consumer1<T1> 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 AbstractConsumer1<T1,Consumer1<T1>>andThenUnchecked in interface AbstractConsumerN<Consumer1<T1>>andThenUnchecked in interface ConsumerChainable<Consumer1<T1>>andThenUnchecked in interface ConsumerChainableConsumer<Consumer1<T1>>after - the operation to perform after this operationafter operation