Class DefaultConfirmPrompt

java.lang.Object
org.jline.prompt.impl.DefaultPrompt
org.jline.prompt.impl.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 Details

    • DefaultConfirmPrompt

      public DefaultConfirmPrompt(String name, String message, boolean defaultValue)
  • Method Details

    • getDefaultValue

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