Package com.tick42.glue.desktop.intents
Interface IntentResult<T>
- Type Parameters:
T- type of data.
public interface IntentResult<T>
Results of a raised intent.
- Since:
- 1.4.1
-
Method Summary
Modifier and Type Method Description IntentHandlergetHandler()Returns the intent implementation that handled the intent.IntentRequestgetRequest()Returns the arguments that were used to raise the intent.Optional<T>getResult()Returns the data returned by the intent implementation when handing the intent.
-
Method Details
-
getRequest
IntentRequest getRequest()Returns the arguments that were used to raise the intent.- Returns:
- The arguments that were used to raise the intent, never
null
-
getHandler
IntentHandler getHandler()Returns the intent implementation that handled the intent.- Returns:
- The intent implementation that handled the intent, never
null
-
getResult
Returns the data returned by the intent implementation when handing the intent.- Returns:
Optionaleventually containing data returned by the intent implementation when handling the intent, nevernull.
-