Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
@FunctionalInterface
public interface BiFunction<T, U, R>
Known subtypesBinaryOperator
A function of two arguments.
Type parameters
<T>- the first input type
<U>- the second input type
<R>- the result type
Methods
public abstract R apply(T t, U u) | Applies this function. |
public default <V> BiFunction<T, U, V> andThen(Function<? super R, ? extends V> after) | This function, then after on its result. |
Method details
apply
public abstract R apply(T t, U u)Applies this function.
Parameters
tT- the first input
uU- the second input
Returns
the result
andThen
public default <V> BiFunction<T, U, V> andThen(Function<? super R, ? extends V> after)This function, then
after on its result.Parameters
afterFunction<? super R, ? extends V>- the function applied next
<V>- the result type of
after
Returns
the composed function