Package org.jline.consoleui.prompt
Class ListResult
- java.lang.Object
-
- org.jline.consoleui.prompt.ListResult
-
- All Implemented Interfaces:
PromptResultItemIF
public class ListResult extends java.lang.Object implements PromptResultItemIF
Result of a list choice. Holds the id of the selected item.
-
-
Constructor Summary
Constructors Constructor Description ListResult(java.lang.String selectedId)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResult()
java.lang.String
getSelectedId()
Returns the ID of the selected item.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
-
-
-
-
Method Detail
-
getSelectedId
public java.lang.String getSelectedId()
Returns the ID of the selected item.- Returns:
- id of selected item
-
getResult
public java.lang.String getResult()
- Specified by:
getResult
in interfacePromptResultItemIF
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-