AsyncOperation.ResultBiFunction<T,U,R> Interface
Type Parameters
- T
First argument type
- U
Second argument type
- R
Result type
public interface ResultBiFunction<T,U,R>
Represents a function to be invoked after an AsyncOperation is done. Notably, this functional interface is used when only two arguments are needed and a result is produced, like with AsyncOperation.handleAsync
This is a functional interface equivalent to android's BiFunction interface
Method Summary
Modifier and Type | Method and Description |
---|---|
R |
apply(T t, U u)
Performs the operation on the given arguments and produces a result |
Method Details
apply
public R apply(T t, U u)
Performs the operation on the given arguments and produces a result
Parameters:
t
- First input argument to the consumer
u
- Second input argument to the consumer
Returns:
result of the operation