Interface ChoicePrompt

  • All Superinterfaces:
    Prompt
    All Known Implementing Classes:
    DefaultChoicePrompt

    public interface ChoicePrompt
    extends Prompt
    Interface for choice prompts. A choice prompt allows the user to select a single item from a list of choices, where each choice has a key associated with it.
    • Method Detail

      • getItems

        java.util.List<ChoiceItem> getItems()
        Get the list of choice items.
        Returns:
        the list of choice items