Package org.jline.consoleui.prompt
Class CheckboxResult
- java.lang.Object
-
- org.jline.consoleui.prompt.CheckboxResult
-
- All Implemented Interfaces:
PromptResultItemIF
public class CheckboxResult extends java.lang.Object implements PromptResultItemIF
Result of a checkbox choice. CheckboxResult contains aSet
with the IDs of the selected checkbox items.
-
-
Constructor Summary
Constructors Constructor Description CheckboxResult(java.util.Set<java.lang.String> selectedIds)
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResult()
java.util.Set<java.lang.String>
getSelectedIds()
Returns the set with the IDs of selected checkbox items.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
-
getSelectedIds
public java.util.Set<java.lang.String> getSelectedIds()
Returns the set with the IDs of selected checkbox items.- Returns:
- set with IDs
-
getResult
public java.lang.String getResult()
- Specified by:
getResult
in interfacePromptResultItemIF
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-