-
- All Superinterfaces:
PromptResult<ConfirmPrompt>
- All Known Implementing Classes:
DefaultConfirmResult
public interface ConfirmResult extends PromptResult<ConfirmPrompt>
Result of a confirmation prompt. Contains a boolean value indicating whether the user confirmed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConfirmResult.ConfirmationValuePossible confirmation values.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfirmResult.ConfirmationValuegetConfirmed()Get the confirmation value.booleanisConfirmed()Check if the user confirmed (answered YES).-
Methods inherited from interface org.jline.prompt.PromptResult
getDisplayResult, getPrompt, getResult
-
-
-
-
Method Detail
-
getConfirmed
ConfirmResult.ConfirmationValue getConfirmed()
Get the confirmation value.- Returns:
- the confirmation value
-
isConfirmed
boolean isConfirmed()
Check if the user confirmed (answered YES).- Returns:
- true if the user confirmed, false otherwise
-
-