IN1 - the first input data type.IN2 - the second input data type.public class BiConsumerWrapper<IN1,IN2> extends Object implements BiConsumer<IN1,IN2>
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IN1 in1,
IN2 in2)
Performs this operation on the given arguments.
|
BiConsumerWrapper<IN1,IN2> |
andThen(BiConsumer<? super IN1,? super IN2> after)
Returns a composed bi-consumer wrapper that performs, in sequence, this operation followed
by the after operation.
|
static <IN1,IN2> BiConsumerWrapper<IN1,IN2> |
biSink()
Returns a bi-consumer wrapper just discarding the passed inputs.
The returned object will support concatenation and comparison. |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasStaticContext()
Checks if the bi-consumers wrapped by this instance have a static context.
|
@NotNull public static <IN1,IN2> BiConsumerWrapper<IN1,IN2> biSink()
IN1 - the first input data type.IN2 - the second input data type.@NotNull public BiConsumerWrapper<IN1,IN2> andThen(@NotNull BiConsumer<? super IN1,? super IN2> after)
after - the operation to perform after this operation.public boolean hasStaticContext()
public void accept(IN1 in1, IN2 in2)
BiConsumeraccept in interface BiConsumer<IN1,IN2>in1 - the first input argument.in2 - the second input argument.