@FunctionalInterface public interface Consumer2<T1,T2> extends java.util.function.BiConsumer<T1,T2>
Modifier and Type | Method and Description |
---|---|
void |
accept(T1 v1,
T2 v2)
Performs this operation on the given argument.
|
default void |
accept(Tuple2<? extends T1,? extends T2> args)
Performs this operation on the given argument.
|
default Consumer1<T2> |
acceptPartially(T1 v1)
Let this consumer partially accept the arguments.
|
default Consumer0 |
acceptPartially(T1 v1,
T2 v2)
Let this consumer partially accept the arguments.
|
default Consumer1<T2> |
acceptPartially(Tuple1<? extends T1> args)
Let this consumer partially accept the arguments.
|
default Consumer0 |
acceptPartially(Tuple2<? extends T1,? extends T2> args)
Let this consumer partially accept the arguments.
|
static <T1,T2> Consumer2<T1,T2> |
from(java.util.function.BiConsumer<? super T1,? super T2> consumer)
Convert to this consumer to a
BiConsumer . |
default java.util.function.BiConsumer<T1,T2> |
toBiConsumer()
Convert this consumer to a
BiConsumer . |
andThen
default void accept(Tuple2<? extends T1,? extends T2> args)
args
- The arguments as a tuple.void accept(T1 v1, T2 v2)
accept
in interface java.util.function.BiConsumer<T1,T2>
default java.util.function.BiConsumer<T1,T2> toBiConsumer()
BiConsumer
.static <T1,T2> Consumer2<T1,T2> from(java.util.function.BiConsumer<? super T1,? super T2> consumer)
BiConsumer
.default Consumer1<T2> acceptPartially(T1 v1)
default Consumer0 acceptPartially(T1 v1, T2 v2)
default Consumer1<T2> acceptPartially(Tuple1<? extends T1> args)
Copyright © 2016. All Rights Reserved.