- All Superinterfaces:
PromptResult<ConfirmPrompt>
- All Known Implementing Classes:
DefaultConfirmResult
Result of a confirmation prompt. Contains a boolean value indicating whether the user confirmed.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumPossible confirmation values. -
Method Summary
Modifier and TypeMethodDescriptionGet the confirmation value.booleanCheck if the user confirmed (answered YES).Methods inherited from interface org.jline.prompt.PromptResult
getDisplayResult, getPrompt, getResult
-
Method Details
-
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
-