T1 - the type of the first argument to the operationT2 - the type of the second argument to the operationC - the type of this consumer@InheritOnly public interface AbstractConsumer2<T1,T2,C extends AbstractConsumer2<T1,T2,C>> extends AbstractConsumerN<C>, net.ashwork.functionality.partial.Variant<java.util.function.BiConsumer<T1,T2>>
AbstractConsumerN.
This is the non-producing specialization of Function2.AbstractConsumerN,
Function2| Modifier and Type | Method and Description |
|---|---|
void |
accept(T1 t1,
T2 t2)
Performs this operation on the given arguments.
|
default void |
acceptAllUnchecked(java.lang.Object... args)
Performs this operation on the given arguments.
|
default AbstractConsumer2<T1,T2,C> |
andThen(C after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default <V> net.ashwork.functionality.Function2<T1,T2,V> |
andThen(net.ashwork.functionality.Function1<? super java.lang.Void,? extends V> after) |
default AbstractConsumer2<T1,T2,C> |
andThenUnchecked(C after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default <V> net.ashwork.functionality.Function2<T1,T2,V> |
andThenUnchecked(net.ashwork.functionality.Function1<? super java.lang.Void,? extends V> after) |
default int |
arity() |
default java.util.function.BiConsumer<T1,T2> |
toVariant() |
applyAllUnchecked, sizedAcceptAllUncheckedvoid accept(T1 t1, T2 t2)
t1 - the first input argumentt2 - the second input argumentdefault void acceptAllUnchecked(java.lang.Object... args)
AbstractConsumerNacceptAllUnchecked in interface AbstractConsumerN<C extends AbstractConsumer2<T1,T2,C>>args - the input argumentsdefault int arity()
arity in interface net.ashwork.functionality.partial.Arityarity in interface net.ashwork.functionality.FunctionN<java.lang.Void>default AbstractConsumer2<T1,T2,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 AbstractConsumerN<C extends AbstractConsumer2<T1,T2,C>>andThen in interface ConsumerChainable<C extends AbstractConsumer2<T1,T2,C>>andThen in interface ConsumerChainableConsumer<C extends AbstractConsumer2<T1,T2,C>>after - the operation to perform after this operationafter operationdefault AbstractConsumer2<T1,T2,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 AbstractConsumerN<C extends AbstractConsumer2<T1,T2,C>>andThenUnchecked in interface ConsumerChainable<C extends AbstractConsumer2<T1,T2,C>>andThenUnchecked in interface ConsumerChainableConsumer<C extends AbstractConsumer2<T1,T2,C>>after - the operation to perform after this operationafter operationdefault <V> net.ashwork.functionality.Function2<T1,T2,V> andThen(net.ashwork.functionality.Function1<? super java.lang.Void,? extends V> after)
andThen in interface net.ashwork.functionality.FunctionN<java.lang.Void>andThen in interface net.ashwork.functionality.partial.ResultChainable<java.lang.Void>andThen in interface net.ashwork.functionality.partial.ResultChainableResult<java.lang.Void>Function2default <V> net.ashwork.functionality.Function2<T1,T2,V> andThenUnchecked(net.ashwork.functionality.Function1<? super java.lang.Void,? extends V> after)
andThenUnchecked in interface net.ashwork.functionality.FunctionN<java.lang.Void>andThenUnchecked in interface net.ashwork.functionality.partial.ResultChainable<java.lang.Void>andThenUnchecked in interface net.ashwork.functionality.partial.ResultChainableResult<java.lang.Void>Function2