- All Superinterfaces:
BiConsumer<T1,T2>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A consumer with 2 arguments.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidPerforms this operation on the given argument.voidPerforms this operation on the given argument.acceptPartially(Tuple1<? extends T1> args) Let this consumer partially accept the arguments.default Consumer0acceptPartially(Tuple2<? extends T1, ? extends T2> args) Let this consumer partially accept the arguments.acceptPartially(T1 v1) Let this consumer partially accept the arguments.default Consumer0acceptPartially(T1 v1, T2 v2) Let this consumer partially accept the arguments.static <T1,T2> Consumer2<T1, T2> from(BiConsumer<? super T1, ? super T2> consumer) Convert to this consumer to aBiConsumer.default BiConsumer<T1,T2> Convert this consumer to aBiConsumer.Methods inherited from interface java.util.function.BiConsumer
andThen
-
Method Details
-
accept
Performs this operation on the given argument.- Parameters:
args- The arguments as a tuple.
-
accept
Performs this operation on the given argument.- Specified by:
acceptin interfaceBiConsumer<T1,T2>
-
toBiConsumer
Convert this consumer to aBiConsumer. -
from
Convert to this consumer to aBiConsumer. -
acceptPartially
Let this consumer partially accept the arguments. -
acceptPartially
Let this consumer partially accept the arguments. -
acceptPartially
Let this consumer partially accept the arguments. -
acceptPartially
Let this consumer partially accept the arguments.
-