Package org.jline.consoleui.prompt
Class ConfirmResult
java.lang.Object
org.jline.consoleui.prompt.ConfirmResult
- All Implemented Interfaces:
PromptResultItemIF
Result of a confirmation choice. Holds a single value of 'yes' or 'no'
from enum
ConfirmChoice.ConfirmationValue
.-
Constructor Details
-
ConfirmResult
Default constructor.- Parameters:
confirm
- the result value to hold.
-
-
Method Details
-
getConfirmed
Returns the confirmation value.- Returns:
- confirmation value.
-
getResult
- Specified by:
getResult
in interfacePromptResultItemIF
-
toString
-