IN1 - the first input data type.IN2 - the second input data type.OUT - the output data type.public class BiFunctionWrapper<IN1,IN2,OUT> extends Object implements BiFunction<IN1,IN2,OUT>
| Modifier and Type | Method and Description |
|---|---|
<AFTER> BiFunctionWrapper<IN1,IN2,AFTER> |
andThen(Function<? super OUT,AFTER> after)
Returns a composed bi-function wrapper that first applies this function to its input, and
then applies the after function to the result.
|
OUT |
apply(IN1 in1,
IN2 in2)
Applies this function to the given arguments.
|
boolean |
equals(Object o) |
static <IN1,IN2> BiFunctionWrapper<IN1,IN2,IN1> |
first()
Returns a bi-function wrapper just returning the first passed argument.
The returned object will support concatenation and comparison. |
int |
hashCode() |
boolean |
hasStaticContext()
Checks if the functions wrapped by this instance have a static context.
|
static <IN1,IN2> BiFunctionWrapper<IN1,IN2,IN2> |
second()
Returns a bi-function wrapper just returning the second passed argument.
The returned object will support concatenation and comparison. |
@NotNull public static <IN1,IN2> BiFunctionWrapper<IN1,IN2,IN1> first()
IN1 - the first input data type.IN2 - the second input data type.@NotNull public static <IN1,IN2> BiFunctionWrapper<IN1,IN2,IN2> second()
IN1 - the first input data type.IN2 - the second input data type.@NotNull public <AFTER> BiFunctionWrapper<IN1,IN2,AFTER> andThen(@NotNull Function<? super OUT,AFTER> after)
AFTER - the type of output of the after function.after - the function to apply after this function is applied.public boolean hasStaticContext()
public OUT apply(IN1 in1, IN2 in2)
BiFunctionapply in interface BiFunction<IN1,IN2,OUT>in1 - the first input argument.in2 - the second input argument.