P - the type of callback parametersR - the type of callback response@FunctionalInterface public interface SyncCallback<P,R> extends Callback
| Modifier and Type | Method and Description |
|---|---|
R |
on(P params)
Invoked when the callback needs a response of type
R that may be determined based on
the provided callback parameters. |
@CheckForNull R on(P params)
R that may be determined based on
the provided callback parameters.params - the object that represents the callback parametersR that represents the callback response that should be
determined based on the provided parametersnull. If this method returns null, then the code that calls
this method decides how to handle this situation