Interface PromptOptionMatcher<TOption>

    • Method Detail

      • match

        TOption match​(Prompt<TOption> prompt,
                      java.lang.String response)
               throws PromptException
        Matches the response to an option provided by the prompt
        Parameters:
        prompt - Prompt
        response - Response value that has been read from the prompt
        Returns:
        Matched option
        Throws:
        PromptException - Thrown if the response value does not match any option, or if the matcher is not compatible with the prompt