Package com.helger.commons.functional
Interface IBiConsumer<T,U>
-
- Type Parameters:
T- the type of the first argument to the operationU- the type of the second argument to the operation
- All Superinterfaces:
BiConsumer<T,U>,Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IBiConsumer<T,U> extends BiConsumer<T,U>, Serializable
Represents an operation that accepts two input arguments and returns no result and is serializable. This is the two-arity specialization ofConsumer. Unlike most other functional interfaces,BiConsumeris expected to operate via side-effects.This is a functional interface whose functional method is
BiConsumer.accept(Object, Object).- Since:
- 8.6.3
- See Also:
IConsumer
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static <T,U>
IBiConsumer<T,U>and(BiConsumer<? super T,? super U> aFirst, BiConsumer<? super T,? super U> aSecond)default IBiConsumer<T,U>andThen(BiConsumer<? super T,? super U> after)Returns a composedBiConsumerthat performs, in sequence, this operation followed by theafteroperation.-
Methods inherited from interface java.util.function.BiConsumer
accept
-
-
-
-
Method Detail
-
andThen
@Nonnull default IBiConsumer<T,U> andThen(@Nullable BiConsumer<? super T,? super U> after)
Returns a composedBiConsumerthat performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Specified by:
andThenin interfaceBiConsumer<T,U>- Parameters:
after- the operation to perform after this operation. May benull.- Returns:
- a composed
BiConsumerthat performs in sequence this operation followed by theafteroperation
-
and
@Nullable static <T,U> IBiConsumer<T,U> and(@Nullable BiConsumer<? super T,? super U> aFirst, @Nullable BiConsumer<? super T,? super U> aSecond)
-
-