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