Class DefaultChoicePrompt

  • All Implemented Interfaces:
    ChoicePrompt, Prompt

    public class DefaultChoicePrompt
    extends DefaultPrompt
    implements ChoicePrompt
    Default implementation of ChoicePrompt interface. This is now the native implementation that doesn't depend on console-ui.
    • Constructor Detail

      • DefaultChoicePrompt

        public DefaultChoicePrompt​(java.lang.String name,
                                   java.lang.String message,
                                   java.util.List<ChoiceItem> items)
    • Method Detail

      • getItems

        public java.util.List<ChoiceItem> getItems()
        Description copied from interface: ChoicePrompt
        Get the list of choice items.
        Specified by:
        getItems in interface ChoicePrompt
        Returns:
        the list of choice items