Top Description Methods
org.jooq.lambda.function

public Interface Consumer2<T1, T2>

extends BiConsumer<T1, T2>
Annotations
@FunctionalInterface
Imports
java.util.function.BiConsumer, org.jooq.lambda.tuple.Tuple1, .Tuple2

A consumer with 2 arguments.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public default void
accept(Tuple2<? extends T1, ? extends T2>
The arguments as a tuple.
args
)

Performs this operation on the given argument.

public void
accept(T1 v1, T2 v2)

Redeclares java.util.function.BiConsumer.accept.

Performs this operation on the given argument.

public default Consumer1<T2>
acceptPartially(T1 v1)

Let this consumer partially accept the arguments.

public default Consumer0
acceptPartially(T1 v1, T2 v2)

Let this consumer partially accept the arguments.

public default Consumer1<T2>
acceptPartially(Tuple1<? extends T1> args)

Let this consumer partially accept the arguments.

public default Consumer0
acceptPartially(Tuple2<? extends T1, ? extends T2> args)

Let this consumer partially accept the arguments.

public static <T1, T2> Consumer2<T1, T2>
from(BiConsumer<? super T1, ? super T2> consumer)

Convert to this consumer to a java.util.function.BiConsumer.

public default BiConsumer<T1, T2>
toBiConsumer()

Convert this consumer to a java.util.function.BiConsumer.

Inherited from java.util.function.BiConsumer:
andThen

Method Detail

acceptback to summary
public default void accept(Tuple2<? extends T1, ? extends T2> args)

Performs this operation on the given argument.

Parameters
args:Tuple2<? extends T1, ? extends T2>

The arguments as a tuple.

acceptback to summary
public void accept(T1 v1, T2 v2)

Redeclares java.util.function.BiConsumer.accept.

Performs this operation on the given argument.

Annotations
@Override
acceptPartiallyback to summary
public default Consumer1<T2> acceptPartially(T1 v1)

Let this consumer partially accept the arguments.

acceptPartiallyback to summary
public default Consumer0 acceptPartially(T1 v1, T2 v2)

Let this consumer partially accept the arguments.

acceptPartiallyback to summary
public default Consumer1<T2> acceptPartially(Tuple1<? extends T1> args)

Let this consumer partially accept the arguments.

acceptPartiallyback to summary
public default Consumer0 acceptPartially(Tuple2<? extends T1, ? extends T2> args)

Let this consumer partially accept the arguments.

fromback to summary
public static <T1, T2> Consumer2<T1, T2> from(BiConsumer<? super T1, ? super T2> consumer)

Convert to this consumer to a java.util.function.BiConsumer.

toBiConsumerback to summary
public default BiConsumer<T1, T2> toBiConsumer()

Convert this consumer to a java.util.function.BiConsumer.