Class StringPrompt

  • All Implemented Interfaces:
    Cloneable, Prompt

    public abstract class StringPrompt
    extends Object
    implements Prompt
    StringPrompt is the base class for any prompt that accepts an arbitrary string from the user.
    • Constructor Detail

      • StringPrompt

        public StringPrompt()
    • Method Detail

      • blocksForInput

        public boolean blocksForInput​(@NotNull
                                      ConversationContext context)
        Ensures that the prompt waits for the user to provide input.
        Specified by:
        blocksForInput in interface Prompt
        Parameters:
        context - Context information about the conversation.
        Returns:
        True.