Class DefaultConfirmPrompt

  • All Implemented Interfaces:
    ConfirmPrompt, Prompt

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

      • DefaultConfirmPrompt

        public DefaultConfirmPrompt​(java.lang.String name,
                                    java.lang.String message,
                                    boolean defaultValue)
    • Method Detail

      • getDefaultValue

        public boolean getDefaultValue()
        Description copied from interface: ConfirmPrompt
        Get the default value.
        Specified by:
        getDefaultValue in interface ConfirmPrompt
        Returns:
        the default value