Package org.jline.consoleui.prompt
Class ListResult
java.lang.Object
org.jline.consoleui.prompt.ListResult
- All Implemented Interfaces:
PromptResultItemIF
Result of a list choice. Holds the id of the selected item.
-
Field Details
-
selectedId
String selectedId
-
-
Constructor Details
-
ListResult
Default constructor.- Parameters:
selectedId
- id of selected item.
-
-
Method Details
-
getSelectedId
Returns the ID of the selected item.- Returns:
- id of selected item
-
getResult
- Specified by:
getResult
in interfacePromptResultItemIF
-
toString
-