Interface Action<ThisT,​R>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      R execute()
      Executes this action.
      default ThisT option​(java.lang.String name, java.lang.String value)
      Configures this action with an extra option.
      default ThisT options​(java.util.Map<java.lang.String,​java.lang.String> options)
      Configures this action with extra options.
    • Method Detail

      • option

        default ThisT option​(java.lang.String name,
                             java.lang.String value)
        Configures this action with an extra option.

        Certain actions allow users to control internal details of their execution via options.

        Parameters:
        name - an option name
        value - an option value
        Returns:
        this for method chaining
      • options

        default ThisT options​(java.util.Map<java.lang.String,​java.lang.String> options)
        Configures this action with extra options.

        Certain actions allow users to control internal details of their execution via options.

        Parameters:
        options - a map of extra options
        Returns:
        this for method chaining
      • execute

        R execute()
        Executes this action.
        Returns:
        the result of this action