Package org.jline.consoleui.prompt
Class ConfirmResult
- java.lang.Object
-
- org.jline.consoleui.prompt.ConfirmResult
-
- All Implemented Interfaces:
PromptResultItemIF
public class ConfirmResult extends java.lang.Object implements PromptResultItemIF
Result of a confirmation choice. Holds a single value of 'yes' or 'no' from enumConfirmChoice.ConfirmationValue
.
-
-
Constructor Summary
Constructors Constructor Description ConfirmResult(ConfirmChoice.ConfirmationValue confirm)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfirmChoice.ConfirmationValue
getConfirmed()
Returns the confirmation value.java.lang.String
getResult()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jline.consoleui.prompt.PromptResultItemIF
getDisplayResult
-
-
-
-
Constructor Detail
-
ConfirmResult
public ConfirmResult(ConfirmChoice.ConfirmationValue confirm)
Default constructor.- Parameters:
confirm
- the result value to hold.
-
-
Method Detail
-
getConfirmed
public ConfirmChoice.ConfirmationValue getConfirmed()
Returns the confirmation value.- Returns:
- confirmation value.
-
getResult
public java.lang.String getResult()
- Specified by:
getResult
in interfacePromptResultItemIF
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-