T - the type of the first argument to the operationU - the type of the second argument to the operation@FunctionalInterface public interface IBiConsumer<T,U> extends BiConsumer<T,U>, Serializable
Consumer. Unlike most other functional interfaces, BiConsumer
is expected to operate via side-effects.
This is a functional interface whose
functional method is BiConsumer.accept(Object, Object).
IConsumer| Modifier and Type | Method and 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 composed
BiConsumer that performs, in sequence, this
operation followed by the after operation. |
accept@Nonnull default IBiConsumer<T,U> andThen(@Nullable BiConsumer<? super T,? super U> after)
BiConsumer that performs, in sequence, this
operation followed by the after 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 BiConsumer<T,U>after - the operation to perform after this operation. May be
null.BiConsumer that performs in sequence this
operation followed by the after operation@Nullable static <T,U> IBiConsumer<T,U> and(@Nullable BiConsumer<? super T,? super U> aFirst, @Nullable BiConsumer<? super T,? super U> aSecond)
Copyright © 2014–2017 Philip Helger. All rights reserved.