- 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.
-
-
Field Summary
-
Fields inherited from class org.jline.prompt.impl.DefaultPrompt
message, name
-
-
Constructor Summary
Constructors Constructor Description DefaultConfirmPrompt(java.lang.String name, java.lang.String message, boolean defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDefaultValue()Get the default value.-
Methods inherited from class org.jline.prompt.impl.DefaultPrompt
getFilter, getMessage, getName, getTransformer, setFilter, setTransformer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jline.prompt.Prompt
getFilter, getMessage, getName, getTransformer
-
-
-
-
Method Detail
-
getDefaultValue
public boolean getDefaultValue()
Description copied from interface:ConfirmPromptGet the default value.- Specified by:
getDefaultValuein interfaceConfirmPrompt- Returns:
- the default value
-
-