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
    IntentHandler getHandler()
    Returns the intent implementation that handled the intent.
    IntentRequest getRequest()
    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

      Optional<T> getResult()
      Returns the data returned by the intent implementation when handing the intent.
      Returns:
      Optional eventually containing data returned by the intent implementation when handling the intent, never null.